Monthly Archives: October 2014

highlight code using pygment

使用pygment来高亮代码,然后直接嵌入到html里简单很多了,可以写个脚本调用pygment,并且自动把css嵌入。 Update: 不过这个会和已有的plugin冲突,还是算了…… This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

Posted in Memo | Tagged , , | Comments Off on highlight code using pygment

reimplement tmpfile under windows

Because tmpfile create temporary file under “/tmp” in linux, but create file under “C:” “D:” in windows. I need it create file under “%TEMP%”, so just reimplement it.

Posted in Memo | Tagged , , | Comments Off on reimplement tmpfile under windows