<link type="text/css" rel="stylesheet" src="http://www.javageek.net/SyntaxHighlighter/Styles/SyntaxHighlighter.css"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shCore.js"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shBrushJava.js"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shBrushXml.js"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shBrushJScript.js"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shBrushCss.js"/>
<script type="text/javascript" src="http://www.javageek.net/SyntaxHighlighter/Scripts/shBrushCSharp.js"/>
<script type="text/javascript">
dp.SyntaxHighlighter.ClipboardSwf = 'clipboard.swf';
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>
Showing posts with label Blogging. Show all posts
Showing posts with label Blogging. Show all posts
Tuesday, October 14, 2008
Formatting code snippets
When i started writing this blog, i did not find any functionality in Blogger to format the code snippets the i would like to include in my posts. So i did some research and found a project hosted in google that is addressing this topic.
I wrote some code that makes use of this very nice project to format my code snippets.
If you are looking to do the same thing, you can use the code below in your blog if you like. The Javascript libraries are served from my server.
Subscribe to:
Posts (Atom)