Pages

Thursday, December 8, 2011

SyntaxHighlighter for RedDot

Just want to share the RedDot syntax for SyntaxHighlighter. Please no hotlinking. I only have limited bandwidth per month.

Files to include on HTML page:
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'></script>
<script src='https://sites.google.com/site/simplyreddot/shBrushRedDot.js' type='text/javascript'></script>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<link href='https://sites.google.com/site/simplyreddot/shCoreRedDot.css' rel='stylesheet' type='text/css'/>
<script type='text/javascript'>
 SyntaxHighlighter.all();
</script>

Case escape HTML code in:
<pre class="brush: RedDot">
...
</pre>

1 comment:

  1. Nice one Jian, I shall be copying these over to my blog :)
    Ta,
    John

    ReplyDelete