[Level 2] How to highlight your code in blogspot.

Please refer to the following links:

http://google-code-prettify.googlecode.com/svn/trunk/README.html
http://stackoverflow.com/questions/1852537/how-to-use-prettify-with-blogger-blogspot

example display for python code:


#!/bin/env python
class MyClass:
  def __init__(self):
  self.name = 'stanley'
  self.age = 25

def getName(self):
  return self.name

def getAge(self):
  return self.age

if __name__ == '__main__':
  man = MyClass()
  print man.getName()
  print man.getAge()



Wish this helps.
regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 1] Rar tool for Solaris.

[Level 2] iif in Python