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.


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

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.


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


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>]]>
  • For JavaScript, that's fine. For XML, that's not. CDATA text should be treated normally. – kevinji Apr 21 '11 at 14:18

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