What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

This question already has an answer here:

If you manually declare code to be XML, code within CDATA is still highlighted, even though it should be treated as text.

Example:

<element test="test">
      <![CDATA[<font size="2"><ul><li><p align="justify">Lorem ipsum</p></li></ul></font>]]>
</element>
share|improve this question

marked as duplicate by ben is uǝq backwards, ChrisF Jun 16 '13 at 10:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 2 down vote accepted

I think that's how google-code-prettify works

http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#xhtml

But if you need to disable the highlighting, you might need to use languge: none syntax.

<!-- language: none -->

    <![CDATA[<font size="2"><ul><li><p align="justify">Lorem ipsum</p></li></ul></font>]]>
share|improve this answer
    
For JavaScript, that's fine. For XML, that's not. CDATA text should be treated normally. –  mc10 Apr 21 '11 at 14:18

Not the answer you're looking for? Browse other questions tagged .