Search code examples
gwtpretty-printhtmltidy

Pretty Print / HTML Tidy for Google Web Toolkit (GWT)?


Is there a function for GWT (Google Web Toolkit) to pretty-print the html output of widgets? (apologies if the question is badly phrased - I'm not a GWT dev, but our developers are claiming that there's no way to do this)

Currently all output is a huge single-line block, making debugging of CSS issues etc. a considerable task.

HTML Tidy / Pretty Print, at least during testing, would be a great help.


Solution

  • If you use Firebug, it's all nicely formatted (the HTML, that is). If you want the compiled JavaScript code to make more sense, you can use the -style PRETTY switch.