CDATA is not properly rendered in html files
Carl in 't Veld
var x= ‘<Content><![CDATA[This is a first paragraph!<DIV> </DIV>And this is a second paragraph.]]></Content>’;
is not properly rendered in NotePad++ using html-styling.
Why is that? Can I do something? Is there another html-plugin that will work correctly?
One should expect one of the following:
- from opening apostrophe to closing apostrophe rendered as a string (grey by default)
- the phrase ‘<Content> rendered as a string and <![CDATA[ to ]]> rendered as CDATA (orange by default) and the phrase </Content>’ rendered as string.
But now the CDATA section stops at . Starting from </DIV> the parser sees the remaing content as html i.e. it is rendered in blue and bold black.
This creates lots of confusing while editing the html document.
AFAIK this how the current lexer is working.
Don’t know of any other html lexer yet.