Discussion:
[Notepad-plus-plus] [notepad-plus - Help] XML <script> tag highlight problem. Bug?
SourceForge.net
2008-12-09 21:13:09 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5785158
By: dmitry_ra

Hello.

I type XML code as follow in notepad++ v.5.0.3:

<root>
<script>
<tag1 />
<test>12345</test>
</script>
</root>


"tag1" and "test" tags not highlighting correctly.

Syntax option set to "XML"...





______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754
SourceForge.net
2009-01-07 19:23:23 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=6025384
By: mkraft

I'm seeing the same thing when using XML language to view XUL files in v.5.0.3.
The moment it sees a "script" tag, it won't highlight the rest of the file
correctly.

So for example the following will highlight everything up to and including the
stringbudleset line, but nothing below it:

<script type="application/x-javascript" src="chrome://blah/content/blah1.js"/>
<script type="application/x-javascript" src="chrome://blah/content/blah2.js"/>

<stringbundleset id="stringbundleset">
<stringbundle id="bundle_sessionmanager"
src="chrome://blah/locale/blah.properties"/>
<stringbundle id="bundle_brand"
src="chrome://branding/locale/brand.properties"/>
</stringbundleset>

<hbox flex="1">


If I change the "<script" to "<script1" or "<scrip" or even "< script" everything
highlights correctly. I can also change the "/>" to a "></script>" and it will
work. It will even work if I throw in a bogus "</script>" tag right before
the "<stringbundleset>" tag.

So it seems that notepad++ doesn't understand that <script/> is a stand alone
tag in XML language and is trying to find the "</script>" end tag.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754
Olivier
2015-10-14 13:19:53 UTC
Permalink
Same problem here.





------------------------------------------------------------------------------
Loading...