Discussion:
Auto formatting JSP and HTML with Netbeans
Jonathan Gilmore
2005-05-26 05:23:20 UTC
Permalink
Does anybody know of a plugin that can be used to auto format JSP and HTML
in Netbeans. I know that ctrl-shift-F can be used to reformat java source,
but this does not work with JSP and HTML.

I have tried the Jalopy plugin but this does not reformat JSP and HTML
either.

Thanks
Jiri Kovalsky
2005-05-26 06:34:14 UTC
Permalink
Hello Jonathan,

if Ctrl+Shift+F does not work for you, it's definetely a bug ! "Reformat Code" action in popup menu of editor is available for both JSPs and HTMLs. I admit it has some minor bugs in NetBeans 3.6 and 4.0 but it works fine in 4.1. And be sure that much more will come in next version of NetBeans since indentation has high priority on our todo list including XML file types.

So are you saying that you don't have "Reformat Code" action in popup menu when you right click in JSP/HTML editor or it only does nothing if you invoke it ? If you can reproduce it with new userdir, don't hesitate to report a bug in Issuezilla including as much information about your environment as possible:

http://www.netbeans.org/issues/enter_bug.cgi?component=web&subcomponent=jsp%20editor&issue_type=DEFECT

Best regards,
-Jirka
Post by Jonathan Gilmore
Does anybody know of a plugin that can be used to auto format JSP and
HTML in Netbeans. I know that ctrl-shift-F can be used to reformat java
source, but this does not work with JSP and HTML.
I have tried the Jalopy plugin but this does not reformat JSP and HTML
either.
Thanks
Loading...