As google blogger does not allow to upload any css and javascript folder, one need to think in different way to make use of highlighter. So here is step by step guide to have it on your blogger
1. Download syntax highlighter from here 2. Copy it in your dropbox public directory. 3. Go to template tab in your blogger setting and click on "edit html" 4. Now just above end of head tag, put the link of public url from your dropbox account.
1. Download syntax highlighter from here 2. Copy it in your dropbox public directory. 3. Go to template tab in your blogger setting and click on "edit html" 4. Now just above end of head tag, put the link of public url from your dropbox account.
5. Now you should remember to choose HTML mode while creating new post. An example to make syntax highlight for python would be
This would result in following python code in your blog:
#!/usr/bin/python
print "Hello, Python!";
""
#!/usr/bin/python
print "Hello, Python!";
""
No comments:
Post a Comment