CDATA is not properly rendered in html files
-
<script>
var x= ‘<Content><![CDATA[This is a first paragraph!<DIV> </DIV>And this is a second paragraph.]]></Content>’;
</script>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.
-
Hello @Carl-in-'t-Veld,
AFAIK this how the current lexer is working.
Don’t know of any other html lexer yet.Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login