syntax highlight

By Enrico Spinielli

April 18, 2012

The following example shows how to syntax highligh some snippet of code in a very minimalistic way.
I used it by symlinking to a file in the version control repo and name it in as the argument of
$('#code-area').load() and here it is:


code higlighted with minimal javascript







Metacircular code highlighting


The following code is an highlighted version of this very page using
SyntaxHighlighter.


You need a decent modern browser to enjoy it.




Posted on:
April 18, 2012
Length:
1 minute read, 85 words
Tags:
javascript syntax highlight
See Also:
How to add a new chart type to dc.js
wiki of the future?