Reputation: 2143
Is there any syntax highlighter which can highlight the code inside the <pre>
? I have been searching a lot on internet but most of the syntax highlighters require the code to be wrapped in <pre><code>
.
My problem is that I can not alter the syntax and add <code>
inside the <pre>
or I can not define any class for the pre. So I am looking for some highlighter which can just automatically highlight code inside the <pre>
. Is it possible with any syntax highlighter?
Upvotes: 0
Views: 1542
Reputation: 882
Try SyntaxHighlighter. You can configure, which tag do you want to use as a sign for highlighting.
Upvotes: 1