My Computer Win7 64-bit
In advance to install the convert to Utf-8 plugin, compile and run garbled, the combination of key ctrl+shift+c the source file to GBK encoding. Still garbled, restart Editor | computer | re-edit the Chinese section.
C++
{
"cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"encoding": "cp936",
"variants":
[
{
"name":"Run",
"cmd": ["cmd","/c", "start", "cmd", "/c","${file_path}/${file_base_name} & pause"]
}
]
}
Java
{
"cmd": ["cmd","/c","javac -encoding gbk -d . ${file}"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"encoding":"gbk",
"variants": [{
"name": "Run",
"shell": true,
"encoding":"gbk",
"cmd": ["start", "cmd", "/c", "java ${file_base_name} & pause"],
"working_dir": "${file_path}",
}]
}
Lua
{
"cmd": ["cmd","/c","start","cmd","/c","lua ${file} & pause"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.lua",
}
Php
{
"cmd": ["cmd","/c","start","cmd","/c", "C:/wamp/bin/php/php5.5.12/php.exe $file & pause"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.php",
"encoding":"gbk"
}
Python
{
"cmd": ["cmd","/c","start","cmd","/c","python ${file} & pause"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.py",
}
Ruby
{
"cmd": ["cmd","/c","start","cmd","/c","ruby ${file} & pause"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.rb",
}
Sublime Build C++/java/lua/python/ruby configuration file