python实现sublime3的less编译插件示例
利用http://tool.oschina.net/less 提供的接口,发送请求进行远程编译.再将编译好的less,保存为同名后缀为css的文件中.第一次使用python,代码也是拼拼凑凑的.需要加上线程进行异步请求,但是不会... 复制代码 代码如下:import sublime, sublime_pluginimport urllibimport json class exampleCommand(sublime_plugin.TextCommand): def run(self, edit): file_name=self.view.file_name(); if file_name.
下载地址
用户评论