zzyengineer / google-code-prettify

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

Syntax highlight for Clojure #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Clojure (http://clojure.org) differs quite a lot from other lispy
languages, it would be great if there was a syntax definition file for it.

What steps will reproduce the problem?
1. Check the list of supported languages and see that Clojure is not there.

What is the expected output?  What do you see instead?
Correct syntax highlighting for Clojure code, with support for its core
library functions.

Original issue reported on code.google.com by ivankob...@gmail.com on 28 Feb 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Would .clj be the correct extension for it?

http://clojure.org/lisps describes it a bit but I can't find a list of 
syntactic differences.
Can you point me at an example of what you consider well highlighted clojure?

Original comment by mikesamuel@gmail.com on 19 Jul 2010 at 8:21

GoogleCodeExporter commented 9 years ago
Hi Mike,

Yes, .clj is the correct extension. 

For the examples:
1. github.com does pretty good job: 
http://github.com/clojure/clojure/blob/master/src/clj/clojure/core_print.clj

2. I currently use the library from 
http://alexgorbatchev.com/wiki/SyntaxHighlighter for syntax highlight on my 
blog: http://koblik.blogspot.com/. It works mostly well except for the words 
with a dash in the name (for example next-trans or drop-while). You can grab 
the definition from here: 
http://sites.google.com/site/ivankoblik/web-storage/highlight.pack.js~, I took 
the original definition from here: 
http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/.

Thanks for looking into it!

Original comment by ivankob...@gmail.com on 19 Jul 2010 at 9:20