December 31, 2005Java2Html
I just discovered Java2Html. There are many code highlighters that let you take code snippets and include them in HTML pages while preserving their colors, but they all suffer from two problems:
Interestingly, this is one of the rare cases where separating style and content, as enabled by CSS, is an annoyance. Java2Html solves these two problems by:
Simple and effective. Posted by cedric at December 31, 2005 06:17 PM Comments
Hi Cedric, you might want to look at JHighlight too: https://jhighlight.dev.java.net/ Geert Posted by: Geert Bevin at January 1, 2006 05:06 AMHi Cedric, you might want to look at JHighlight too: https://jhighlight.dev.java.net/ Geert Posted by: Geert Bevin at January 1, 2006 06:04 AMOne thing I always liked about Eclipse was that copy-paste saved the highlighting and was usually enough when I pasted into rich editor like Word or Dreamweaver. Posted by: Jevgeni Kabanov at January 1, 2006 11:28 AMGreat to point us to that tool... I have been looking for something like that for a while. Thanks. Posted by: Markus Voelter at January 1, 2006 03:36 PMHi Cedric, I fire up my jEdit to do java/javascript/ruby to HTML conversion. There's also an opensource tool that converts .java(among others) to .HTML in batch mode code2html -- http://www.palfrader.org/code2html/. HAPPY NEW YEAR! BR, I know Eclipse is your cup of tea, but if you use IDEA you will find 'Copy as HTML' to be quite nice. A sample of output is on one of my recent posts: (I tried including the link, but the form rejects it for containing 'b*l*o*g*s*p*o*t' without the asterisks. Hrm.) http://binkley.b*l*o*g*s*p*o*t.com/2006/01/more-enum-reinvention-in-java.html
Check this one: htmlSave. http://eclipse.moelleryoung.com/htmlsave/index.php I think it's better (it just grabs current editor). I usually have to modify generated code (not xhtml), but it's good enough. Posted by: Luigi R. Viggiano at January 2, 2006 03:55 PMPost a comment
|