Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Scheme syntax highlighting

Name: Anonymous 2010-05-09 8:40

I propose a new type of syntax highlighting for scheme, to get rid of all the silly parenthesis and make the code more readable.

As a bonus, it will now be obvious to all that scheme is a toy language.

http://paste.lisp.org/+24DW

(display as -> text/html)

Name: Anonymous 2010-05-09 8:56

That looks really nice actually.

Make an IDE that does that.

Name: Anonymous 2010-05-09 9:12

What's the colouring scheme? Does it cycle through a set number of colours, or are there different groups of colours for different types of functions, getting darker with increasing nesting? Should functions and arguments also be boxed, with slightly different colours? That single n looks a bit lonely.

Name: Anonymous 2010-05-09 9:12

>>1
I think one of the Fluxus people already made something like that.
to get rid of all the silly parenthesis
Some of us like the parents
and make the code more readable.
It doesn't do that, It just looks like a more colourful version of SRFI 49. And let's face it, SRFI 49 is about as popular as the plague
>As a bonus, it will now be obvious to all that scheme is a toy language.
( ≖‿≖)

Name: Anonymous 2010-05-09 9:13

>>4
s/parents/parens/

Name: Anonymous 2010-05-09 9:14

>>1
That fibs isn't very efficient!

Name: Anonymous 2010-05-09 9:24

Theres an Emacs mode that does something like that but with shaded boxes instead of fruity colors. Theres a screen shot of it buried somewhere in /prog/.

Name: Anonymous 2010-05-09 9:41

Name: Anonymous 2010-05-09 9:55

>>8
Lemon Party?

Name: Anonymous 2010-05-09 9:59

>>7
Fruits are good for you.

Name: Anonymous 2010-05-09 10:41

NICE COLD ICE COLD MILK

Name: opie 2010-05-09 14:26

>>2
Yeah, that was the idea.

>>3
Right now it's just an arbitrarily chosen color for each depth. If I keep on messing with this I'll be exploring such ideas to see what works.
The n looks bad, I agree, it needs to stand out more.

>>4
I assume you mean this: http://blip.tv/play/AYHMuAcC
Awesome video, thanks for the pointer. I had actually thought about dragging s-expressions around like that,

SRFI 49 removes the parens, making the structure of the code visible only through indentation. Here, the parens are replaced with stronger visual cues. So, not the same thing at all?

Also YHBT

Name: stHeGamElg !!6tgh96A6b05foIm 2010-05-10 3:00

hi

Name: Anonymous 2010-05-10 3:04

>>12
Why would you want to drag them around? Vim and Emacs let you cut and paste them with simple hotkeys; this is much faster than using a mouse.

Name: Anonymous 2010-05-10 3:52

>>14
Don't be silly. Moving text is an exercise in selecting locations on the screen. The mouse can do this much more quickly than the keyboard.

Name: Anonymous 2010-05-10 3:56

>>15
Don't be silly. Text is 1-dimensional. The keyboard is much faster than the mouse for 1-dimensional selections.

Name: Anonymous 2010-05-10 4:04

>>16
Don't be fucking retarded.  That's not even close to making sense.

Name: not >>16 2010-05-10 8:40

>>17
Sorry dude, he has a pretty good point there.

Name: Anonymous 2010-05-10 10:42

>>18
Except that he doesn't. Text is comprised of lines, and columns of characters within each line.

Name: Anonymous 2010-05-10 11:15

>>19
Don't impose your fascist notions of what text is onto me.

Name: Anonymous 2010-05-10 14:01

>>19
Well I still agree wholeheartedly with >>16 and there's nothing you can do about it.

Name: Anonymous 2010-05-10 14:51

>>21
I can TEXT YOUR ANUS

Name: Anonymous 2010-11-14 13:16

Name: Anonymous 2011-02-03 7:21


Don't change these.
Name: Email:
Entire Thread Thread List