2010/4/16 Chunlin Zhang <[email protected]>:
> 因为我碰到一些文件没有后缀名,但其实是 python 文件,第一行有 "#! /usr/bin/env
> python",我想根据这个来判断,如果有这样的行,那就把这个文件当成 python 文件来显示文本.
>
> 应该可以写成一个插件,但是我还没搞懂怎么改.
>
> 是 class ChangeFileType 的 enter() 吗?
>
>
> --
> Subscription settings: http://groups.google.com/group/ulipad/subscribe?hl=en
>

这个我要仔细看代码了,因为时间比较长记不太清了。

-- 
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://uliwebproject.appspot.com
My Blog: http://hi.baidu.com/limodou

Reply via email to