Colorizing Java sources in a browser using JavaScript and CSS
Ever wanted to colorize and format your (Java) code while displaying it in a browser?
Check out the title of this post that gives you JavaScript and CSS source code for doing the same.
Grab the source and improve the readability of your site.
Note: I tried pasting a demo source code here. But the complete design of my blog was cluttering. I did not try rectifying the issue. But please do share your comments if you are facing a similar problem and get the solution. Thanks. :)
[Resource-Type: Source Code;Category: Web/JavaScript,CSS;XRating: 4]








1 Comments:
That looks pretty sweet. It would be nice if there were a lexer generator for javascript. Lex (for C) and Jflex (for Java) do a wonderful job of creating fast scanners from a set of regular expressions. It would be nice if one were adapted to javascript for something like this.
11:54 AM
Post a Comment
<< Home