1.下載http://sublime-text-2.cn.uptodown.com後打開; python
{"cmd": ["/usr/local/bin/lua", "$file"],"file_regex": "^(...*?):([0-9]*):?([0-9]*)","selector": "source.lua"}
注:必定要保存在英文路徑下,若是保存在中文路徑下會出現以下異常:
- Traceback (most recent call last):
- File "./sublime_plugin.py", line 337, in run_
- File "./exec.py", line 130, in run
- UnicodeEncodeError: 'ascii' codec can't encode characters in position 36-37: ordinal not in range(128)