Python.sublime-build
{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding":"utf-8",
"variants":
[
{
"name": "Run",
"shell": true,
"cmd" : ["start", "cmd", "/k", "python", "${file_path}/${file_base_name}.py"]
}
]
}
Ruby.sublime-build
{
"cmd": ["ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby",
"encoding":"utf-8",
"variants":
[
{
"name": "Run",
"shell": true,
"cmd" : ["start", "cmd", "/k", "ruby", "${file_base_name}.rb"]
}
]
}
C++.sublime-build
{
"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",
"shell": true,
"cmd" : ["start", "cmd", "/k", "${file_path}/${file_base_name} &&echo. & pause && exit"]
}
]
}
JavaC.sublime-build
{
"cmd": ["javac", "-encoding", "utf-8", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"encoding":"utf-8",
"variants":
[
{
"name": "Run",
"shell": true,
"cmd" : ["start", "cmd", "/k", "java", "${file_base_name}"]
}
]
}