Page 1 of 1
JavaScript source formatter doesn't format XML comments correctly
Posted: Tue Feb 14, 2012 2:57 pm
by lukaseder
See this screenshot for an example:
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
Re: JavaScript source formatter doesn't format XML comments correctly
Posted: Tue Feb 14, 2012 3:02 pm
by lukaseder
An even more interesting example...

Re: JavaScript source formatter doesn't format XML comments correctly
Posted: Tue Feb 14, 2012 4:09 pm
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
Re: JavaScript source formatter doesn't format XML comments correctly
Posted: Mon Feb 27, 2012 4:15 pm
by lukaseder
Great, thank you Adrian!
Re: JavaScript source formatter doesn't format XML comments correctly
Posted: Mon Feb 27, 2012 4:57 pm
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