1 2 3 4 5 6 7 8 9 | from datetime import date class Test(object): def printToday(self): today = date.today() print 'Hello, today is %s.' % today.isoformat() if __name__ == '__main__': Test().printToday() |
之前一直用的 iG:Syntax Hiliter 已经长时间不更新了,现在换上了一个新的代码高亮插件 WP-Syntax,感觉不错。
注意,由于上面说到的两个插件都是基于 GeSHi 实现的,所以只能2者选其一,同时使用的话,会由于 GeSHi 中的 Class 重复定义而出错。
唉,要抽空把以前发的代码替换以下了