Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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
Muchas is currently offline Muchas
Messages: 1
Registered: June 2010
Junior Member
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=



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]

Report message to a 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
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2250
Registered: July 2009
Senior Member
No, but I believe it's addressed in Helios. See .

Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Error uploading EAR file to OC4J server.
Next Topic:specifying help id for the XML editor
Goto Forum:

Current Time: Sat Aug 23 05:33:37 EDT 2014

Powered by FUDForum. Page generated in 0.02173 seconds