Blogger and Syntax Hightlighting

Posted by Nepenthes on 10:43 PM

elow is the sample hightlighing for xml



Here is how I did it.

At first downloaded Syntax-Highter to highlight source-codes in my blogs.

  1. Downloaded Syntax-Highter
  2. Uploaded to my personal space http://www.samundra.com.np
  3. Main files to be uploaded are
    • dp.SyntaxHighlighter/Scripts/clipboard.swf
    • dp.SyntaxHighlighter/Scripts/shBrushJava.js
    • dp.SyntaxHighlighter/Scripts/shCore.js
    • dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
  4. Added link of uploaded file to my blog template.




  5. You can do the same only replace
    • http://www.samundra.com.np/db.syntax/Scripts with your own url where you have uploaded your files.
  6. Finally Activate the javascript function, for syntax hightlighting.
    • You can do this by adding the following code snippet at the end of your template just before the tag:



actual source : http://abhisanoujam.blogspot.com/2008/12/blogger-syntax-highlighting.html

0 comments:

Post a Comment