[BUG] ASP language styler error
-
Styler is having trouble with the ASP language.
if the code contains <?xml and <![CDATA problem experienced.
The problem is solved when the xml or cdata codes deleted.
Note: experiencing problems for a long time. I’m tired of this now.Screen: https://image.ibb.co/jBxwDn/bug.png
Styler Language: ASPNotepad++ v7.5.6 (64-bit)
Build time : Mar 19 2018 - 00:23:17
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll -
The built in syntax highlighting comes from Scintilla and there are some ASP highlighting bugs already open on the Scintilla bug tracker, but nothing that matches this exactly. You could try filing a bug there. There’s an open bug for ASP highlighting from 2008 so it may be a while :/
I noticed that if you put a space between the msg tag and the CDATA, the highlighting fixes itself, but the next time you open the file, it’s back to being messed up. A truly hacky work-around would be to break up the trouble spot (bracket). This is your original text:
<% xml= "<?xml version='1.0' encoding='UTF-8' ?>" xml = xml & "<msg><![CDATA["hello"]]></msg>" response.write "hello" %>
If you change it to this:
<% xml= "<?xml version='1.0' encoding='UTF-8' ?>" xml = xml & "<msg><" & "![CDATA["hello"]]></msg>" response.write "hello" %>
Not pretty, but it keeps the highlighting sane. IDK if that breaks anything in asp, but you could try it.
Good Luck
-
@cipher-1024 Thank you for the answer. Good idea for workaround. At least highlighting will not fall into constant error.