I've implemented a syntax highlighter to better view code, it's called SyntaxHighlighter.
Here are the steps to use it on Blogger
- Download SyntaxHighlighter to your computer
- Create a "Google Site" if you don't have one yet
- Create a "File Cabinet" page
- Upload the "shcore.js", the css files and the brushes (=code highlights for specific languages) as described in the SyntaxHighlighter installation notes
- Edit your Blogger template, link the js files and css in to the files you've uploaded (copy the link from "Download" on the file cabinet)
- Use the 'pre' method as described in the installation notes
- Don't forget the inclusion of
SyntaxHighlighter.all()
No comments:
Post a Comment