Monday, May 19, 2014

How to add SyntaxHighlighter from Alex Gorbatchev to blogger

In Design -> Layout, add a Gadget HTML/JavaScript


JavaScript

<link href='http://www.SRV.com/syntaxhighlighter_3.0.83/styles/shCore.css' rel='stylesheet' type='text/css' /> <link href='http://www.SRV.com/syntaxhighlighter_3.0.83/styles/shThemeDefault.css' rel='stylesheet' type='text/css' /> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shCore.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushCpp.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushCSharp.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushCss.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushJava.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushJScript.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushPhp.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushPython.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushRuby.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushSql.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushVb.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushXml.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushPerl.js' type='text/javascript'></script> <script src='http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/shBrushPowerShell.js' type='text/javascript'></script> <script language='javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clipboardSwf = 'http://www.SRV.com/syntaxhighlighter_3.0.83/scripts/clipboard.swf'; SyntaxHighlighter.all(); </script>

No comments:

Post a Comment