Pretty Printing Java Source As HTML

NetBeans is able to output Java source code as HTML directly from the "File" menu:

  1. Select a Java Source File in the "Projects" Window
  2. Choose: Print To HTML
  3. Choose Between Print To File or Print To Clipboard

The output is fairly customizable with inlined CSS.


Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition

airhacks.fm the podcast:

Stay in touch: airhacks.news.

Comments:

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 06: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 11:34 AM CEST #

Nice. The old print option is ugly.

Posted by Toni Rocha on June 04, 2012 at 07:15 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
realworldpatterns.com
...the last 150 posts
...the last 10 comments
License