Project DescriptionA code snippet plugin for Windows Live Writer with support for Syntaxhighlighter as well as good support for snippet indentation.
This code snippet Windows Live Writer plugin supports
Syntaxhighlighter and will add the required code class attributes when selected.
How to Enable Syntaxhighlighter Support For syntax highlighting you will need to add support for the Syntaxhighlighter JavaScript and CSS library - which you can download from
Syntaxhighlighter. There are several way you can configure this on your site - here's one option.
- Download the support files from Syntaxhighlighter and place them in a directory called scripts
- Add the style sheet to the <head> section of your site <link type="text/css" rel="stylesheet" href="scripts/SyntaxHighlighter.css"></link>
- Add the JavaScript references to your website as follows - placing them just before the closing </body> tag at the
bottom of the page (with as many language brush scripts as you'd like to support):
<script language="javascript" src="scripts/shCore.js"></script>
<script language="javascript" src="scripts/shBrushCSharp.js"></script>
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = 'scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>
Anthony Bouch (
http://www.58bits.com)
Thanks to Alexander Groß for the UpdateableComponent bits (
http://www.therightstuff.de/)