Menu

Problem with syntax highlighting in XML

2005-12-23
2012-11-13
  • Geva Zeichner

    Geva Zeichner - 2005-12-23

    screenshot: http://geva.zeichner.ws/files/npp_xml_bug.png
    As you can see in the image above, it seems that when putting a <sript> tag on the xml file, it causes notepad++ to not highlight the followed tag correctly (see the red arrows).
    I'll be glad if a fix would be made for the next version.
    Thank you.

     
    • Geva Zeichner

      Geva Zeichner - 2005-12-23

      &lt;sript&gt;  = script

       
      • Nobody/Anonymous

        Sorry this problem i`m solved by replace SciLexer.dll to version 1.7.1.0

         
    • Geva Zeichner

      Geva Zeichner - 2006-06-26

      Hi,
      Has anyone had a chance to check this bug?
      Thanks...

       
    • Nobody/Anonymous

      I think it is an intended behaviour, because between script tags there are most probably lines of code (javascript for example) and no xml tags.

      However, there is the same problem when empty script tags are used which is not normal. See the following example :
      <pre>
      <script type="text/javascript" src="javascript/popups.js" />
      <!-- this comment and the following tag are not highlighted -->
      <element1/> <!-- not hightlighted -->
      <element2>  <!-- not hightlighted -->
      </element2> <!-- ok -->
      </pre>

      Crapaud-Poltron

       
    • Anonymous

      Anonymous - 2006-07-13

      To me it looks like a parsing error, that can't recignise the / in the element and thinks it is still open.