Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Autoformat ruins javascript in JSP(Autoformat ruins javascript in JSP)
Autoformat ruins javascript in JSP [message #538860] Tue, 08 June 2010 15:49 Go to next message
Eclipse UserFriend
When I format shift+ctrl in a JSP file with javascript embedded then the javascript is ruined.

For instance a tag like

<input type="button" onclick="javascript:mymethod()">

Will turn into something like

<input type="button" onclick=

mymethod()

>

The javascript prefix is completely removed and quotes are removed and a lot of linefeeds are inserted.

Im using default formatting - havent changed anything in preferences. Running j2ee bundle of Eclipse 3.5 sr2 on win7. Older versions of eclipse had the same problem.

Is there any kind of setting I can change to improve this?




[Updated on: Tue, 08 June 2010 15:50] by Moderator

Re: Autoformat ruins javascript in JSP [message #539216 is a reply to message #538860] Wed, 09 June 2010 23:22 Go to previous message
Eclipse UserFriend
No, but I believe it's addressed in Helios. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=259465 .
Previous Topic:Error uploading EAR file to OC4J server.
Next Topic:specifying help id for the XML editor
Goto Forum:
  


Current Time: Sun Jul 06 13:52:27 EDT 2025

Powered by FUDForum. Page generated in 0.03833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top