JavaScript source formatter doesn't format XML comments correctly

Are you missing a feature? Request it's implementation here.

JavaScript source formatter doesn't format XML comments correctly

Postby lukaseder » Tue Feb 14, 2012 2:57 pm

See this screenshot for an example:

Image

The XML comments inside of <script> tags are no longer syntax-highlighted as XML comments but as JavaScript code, instead. This can be a bit confusing...

I'm using the <oXygen/> XML Editor 13.2, build: 2012013115 in Eclipse
lukaseder
 
Posts: 19
Joined: Thu Feb 09, 2012 3:52 pm

Re: JavaScript source formatter doesn't format XML comments correctly

Postby lukaseder » Tue Feb 14, 2012 3:02 pm

An even more interesting example... :-)

Image
lukaseder
 
Posts: 19
Joined: Thu Feb 09, 2012 3:52 pm

Re: JavaScript source formatter doesn't format XML comments correctly

Postby adrian » Tue Feb 14, 2012 4:09 pm

Hello,

Thank you for letting us know about this problem.

I have logged this to our issue tracking tool and it will be analyzed and resolved in the next release of Oxygen.

Please let us know if you encounter further issues.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
 
Posts: 1330
Joined: Tue May 17, 2005 4:01 pm

Re: JavaScript source formatter doesn't format XML comments correctly

Postby lukaseder » Mon Feb 27, 2012 4:15 pm

Great, thank you Adrian!
lukaseder
 
Posts: 19
Joined: Thu Feb 09, 2012 3:52 pm

Re: JavaScript source formatter doesn't format XML comments correctly

Postby adrian » Mon Feb 27, 2012 4:57 pm

Hi,

The explanation for why this happens is that the syntax highlight in XML comments from <script> blocks was meant for XHTML(where it makes perfect sense). However in XSLT this is not useful at all.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
 
Posts: 1330
Joined: Tue May 17, 2005 4:01 pm


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 0 guests