TonyXT / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
0 stars 0 forks source link

Lisp Syntax Highlighting + Parenthesis Match #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Thank you Mike for this wonderful syntax highlighter.

I was wondering if it be possible (or planned) to support syntax
highlighting for Lisp? Currently the code shows up without any highlighting
(http://code.google.com/p/bld/source/browse/trunk/src/bld-core.lisp).

What would be really cool is if the highlighter had a parenthesis match
feature. I am not sure how they do it but a example of this can be found
http://paste.lisp.org/display/62591
Hovering the pointer at a parenthesis highlights the match (and the
hierarchy) in different colors.

Actually parenthesis match is orthogonal to Lisp highlighting and could
probably be independently useful. Thanks.

Original issue reported on code.google.com by parth.ma...@gmail.com on 25 Jun 2008 at 4:10

GoogleCodeExporter commented 8 years ago
I can't help much with the js and css stuff but attached are the keywords for 
the
clisp implementation of Common Lisp (http://www.clisp.org/) which is used quite 
a bit
on Windows and Unix.

The thing about Lisp is that even special characters are valid symbol names, so 
"\="
is actually a not-equal-to keyword, as is "string=" which is a test for string 
equality.

The symbols with : are implementation extensions, e.g. ext:exit.

Hope the attachment is useful.

Parth

Original comment by parth.ma...@gmail.com on 25 Jun 2008 at 4:24

Attachments:

GoogleCodeExporter commented 8 years ago
Just realized that having a full list of 180Kb size of keywords may be quite a
problem in itself. So I made another list of just the keywords that are a part 
of the
ANSI Common Lisp spec. There still are ~970 (keywords + symbols) but this is 
much
shorter than the earlier attachment. Sorry about that. 

Original comment by parth.ma...@gmail.com on 25 Jun 2008 at 4:51

Attachments:

GoogleCodeExporter commented 8 years ago
@r40

Added an extension for lispy languages.  See
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue42

I'll follow up with the code.google.com guys on the best way to do matching of
parentheses.

Original comment by mikesamuel@gmail.com on 5 Jul 2008 at 9:25

GoogleCodeExporter commented 8 years ago
Looks real neat. Thanks Mike.

Original comment by parth.ma...@gmail.com on 6 Jul 2008 at 8:23

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 6 Jan 2009 at 6:36