2011/4/26 limodou <[email protected]>: > > > 2011/4/26 Chunlin Zhang <[email protected]> >> >> 有些文件使用 >> ''' >> # -*- python -*- >> # ex: set syntax=python: >> ''' >> 开头的,修改一下对这种文件的支持.附件的 repo_gerrit.cfg 是这种文件的例子. > > > 看你的处理,如果第一行不是# -*- python -*- 就没戏了。有没有可能在其它行?好象通用性并不强啊。 哦,看起来是,其实我也搞不懂这个是啥格式,好像是给 vi/vim 用的,看起来 ex: set syntax=python 比较关键. 那就不集成算了,以后有更合适的做法再说吧.
> -- > I like python! > UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/ > UliWeb <<simple web framework>>: http://code.google.com/p/uliweb/ > My Blog: http://hi.baidu.com/limodou >
