<link href='https://www.blogger.com/dyn-css/authorization.css?targetBlogID=2122001388027234627&amp;zx=65678e98-cebe-4fa0-8cfb-15a21e9d212f' rel='stylesheet'/>

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:
1
2
3
4
5
6
7
8
<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:
1
2
3
<pre class="brush: RedDot">
...
</pre>

1 comment:

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

    ReplyDelete