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 19:49 Go to next message
Muchas is currently offline MuchasFriend
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=

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 19:50]

Report message to a moderator

Re: Autoformat ruins javascript in JSP [message #539216 is a reply to message #538860] Thu, 10 June 2010 03:22 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2337
Registered: July 2009
Senior Member
No, but I believe it's addressed in Helios. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=259465 .

---
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: Thu Nov 27 13:36:48 GMT 2014

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

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