Give color to your code!

I needed a tool to convert Java source code to a nicely printed HTML for this blog.
I already knew about Java2Html, that does a great job, but I wanted a clever html and nicer row numbers. Looking inside it, I found that the code for parsing could be simplified, and generated html could be lightweighted, so I reimplemented it from scratch using Java5 and Maven.
The project page with source code is available here, and the maven-generated website is here.

This is the result:

Just paste your java source code, or a snippet, select the desired style and submit the form.
You can take the generated html and the css for using on your blog.

The project website will be online soon.

Hope you like it.


2 Responses to “Give color to your code!”  

  1. 1 Jurgen Van Oosterwijck

    Excellent! Nice work, I hope I can put it to good use ;-)

  2. 2 ahmet

    very nice. For the ones who use IDEA, there is also a plugin for directly converting the code (with your IDEA color settings).
    http://plugins.intellij.net/plugin/?id=190

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Calendar

December 2006
M T W T F S S
« Nov   Jan »
 123
45678910
11121314151617
18192021222324
25262728293031

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening