JavaScript source formatter doesn't format XML comments correctly

Are you missing a feature? Request its implementation here.
lukaseder
Posts: 19
Joined: Thu Feb 09, 2012 3:52 pm

JavaScript source formatter doesn't format XML comments correctly

Post by lukaseder »

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

Post by lukaseder »

An even more interesting example... :-)

Image
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post by adrian »

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
lukaseder
Posts: 19
Joined: Thu Feb 09, 2012 3:52 pm

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

Post by lukaseder »

Great, thank you Adrian!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post by adrian »

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
Post Reply