Adam Bien's Weblog
Pretty Printing Java Source As HTML
NetBeans is able to output Java source code as HTML directly from the "File" menu:
- Select a Java Source File in the "Projects" Window
- Choose: Print To HTML
- Choose Between Print To File or Print To Clipboard
The output is fairly customizable with inlined CSS.
Posted at 04:32PM May 22, 2012 by Adam Bien in Real World Java EE Patterns - Rethinking Best Practices | Comments[3] | Views/Hits: 5700
NEW Workshop: "JPA, NoSQL, Caching, Grids and Distributed Caches with Java EE 7", May 7th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

Now if only cut and copy would automatically put an HTML flavour on the clipboard as well as plain text...
Posted by Scott on May 23, 2012 at 04:44 AM CEST #
Is this a feature of 7.1?
I can't finnd it in 7.0.1.
Posted by Shai Almog on May 23, 2012 at 09:34 AM CEST #
Nice. The old print option is ugly.
Posted by Toni Rocha on June 04, 2012 at 05:15 PM CEST #