anyone know of a tool that will take java code and format it into html.
think wiki for developers, so they need to be able to read the code
snippets in a readable format in the wiki (mediawiki)
thx
On Sat, 07 Jan 2006 03:29:55 GMT, usenetjb
<usenet.20.jimbo-black@antichef.net> wrote, quoted or indirectly
quoted someone who said :
>anyone know of a tool that will take java code and format it into html.
>think wiki for developers, so they need to be able to read the code
>snippets in a readable format in the wiki (mediawiki)
I do all the time. I render small bits of Java into HTML and longer
files into compressed serialised token files rendered by an Applet
that scrolls them.
See http://mindprod.com/jgloss/jdisplay.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
> anyone know of a tool that will take java code and format it into html.
http://www.google.de/search?hl=de&q=java2html&btnG=Google-Suche&meta=

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
> anyone know of a tool that will take java code and format it into html.
> think wiki for developers, so they need to be able to read the code
> snippets in a readable format in the wiki (mediawiki)
>
> thx
Just cut and paste the code into the html page - and put <pre> tags around
the code.
wouldn't that work?
Andrew Thompson - 07 Jan 2006 05:54 GMT
>>anyone know of a tool that will take java code and format it into html.
>>think wiki for developers, so they need to be able to read the code
>>snippets in a readable format in the wiki (mediawiki)
...
> Just cut and paste the code into the html page - and put <pre> tags around
> the code.
> wouldn't that work?
Sure would. E.G.
<html>
<body>
<pre>
...the source code..
</pre>
</body>
</html>
..Would be a valid page containing source code that would
retain the tabs, spacing and line breaks of the original.
Of course, Roedy does some nice transforms on the source to
highlight a variety of aspects of the code (keywords, method
exits, ..) more like an IDE would.

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Torkel Franzen - 07 Jan 2006 06:40 GMT
> Just cut and paste the code into the html page - and put <pre> tags around
> the code.
> wouldn't that work?
Not quite. You also need to replace some < with <.
Andrew Thompson - 07 Jan 2006 06:53 GMT
>>Just cut and paste the code into the html page - and put <pre> tags around
>>the code.
>>wouldn't that work?
>
> Not quite. You also need to replace some < with <.
Oh yeah.. good point.

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Cram TeXeD - 12 Jan 2006 21:17 GMT
/.../
>> Not quite. You also need to replace some < with <.
No, you don't need so: use <nowiki> tag instead.
8:0) Cram TeXeD

Signature
"Des astronautes ont rencontré Dieu, et Elle est noire"
Roedy Green - 07 Jan 2006 07:56 GMT
> Not quite. You also need to replace some < with <.
I have a class to do that. see
http://mindprod.com/products1.html#ENTITIES
I can convert < to < or vice versa.
I can also strip out <tags>

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Andrew McDonagh - 08 Jan 2006 18:48 GMT
>>anyone know of a tool that will take java code and format it into html.
>>think wiki for developers, so they need to be able to read the code
[quoted text clipped - 5 lines]
> the code.
> wouldn't that work?
even simpler, in MediaWiki, just start each line with a space, then
everything is treated as code and formatted appropriately...
Thomas Schodt - 09 Jan 2006 17:06 GMT
>>anyone know of a tool that will take java code and format it into html.
>>think wiki for developers, so they need to be able to read the code
[quoted text clipped - 5 lines]
> the code.
> wouldn't that work?
Use the wiki <verbatim> </verbatim> tags,
that will escape funny stuff ('<','>','&', etc.)
Thomas Schodt - 10 Jan 2006 10:22 GMT
> Use the wiki <verbatim> </verbatim> tags,
> that will escape funny stuff ('<','>','&', etc.)
Except OFC you can't have "</verbatim>" in the text...
> anyone know of a tool that will take java code and format it into html.
> think wiki for developers, so they need to be able to read the code
> snippets in a readable format in the wiki (mediawiki)
>
> thx
http://www.palfrader.org/code2html/code2html.html
> anyone know of a tool that will take java code and format it into html.
> think wiki for developers, so they need to be able to read the code
> snippets in a readable format in the wiki (mediawiki)
Check out GNU source highlight.
http://www.gnu.org/software/src-highlite/source-highlight.html