I am looking at http://alexgorbatchev.com/SyntaxHighlighter/manual/demo/html-script.html. It uses
<pre class="brush: php; html-script: true">
I want to use it with JavaScript instead.
<script type="syntaxhighlighter" class="brush: js; html-script: true">
<![CDATA[
<html>
<body>
<script>
/**
* SyntaxHighlighter
*/
function foo()
{
if (counter <= 10)
return;
// it works!
}
</script> <!-- this </script> seems to confuse the syntax highlighter -->
</body>
</html>
]]>
</script>
Notice I use "brush: js;".
Unfortunately, it got confused with the "</script>
" tag above.
How to deal with the above case?
Thanks in advance for your help.
UPDATE:
I use < pre /> method as mentioned on http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html