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 Commenti a “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

Lascia un Commento

XHTML: Puoi utilizzare questi tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Calendario

Dicembre 2006
L M M G V S D
« Nov   Gen »
 123
45678910
11121314151617
18192021222324
25262728293031

Categorie