Sublime Text
### Why Sublime Text
Why Sublime Text
- A lightweight editor
- Very easy to hook up compilers/interpreters
- Simple to configure
- Plenty of plugins available
- Comfortable to use
Installing Sublime Text
Installing Sublime Text Packages
Manually import Package Control:
1. Preferences > Browse Packages
2. Copy Control.sublime-package into Installed Packages/
3. Restart Sublime Text
Installing Sublime Text Plugins
- Command + Shift + P
- Package Control: Install Package
- Watch the lower-left corner: an equals sign moves back and forth (repositories are loading)
- Just type the repository name
Recommended repository:
Integrating Compilers/Interpreters in Sublime Text
1.Tools -> Build System -> New Build System
2. Add the configurations for the following programming languages
{ "shell_cmd": "python3 "$file"",
"encoding": "utf-8", "file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"env": {"LANG": "en_US.UTF-8"} }
Perl
{ "cmd": ["perl", "$file"], "file_regex": ".* at (.) line ([0-9])", "selector": "source.perl", "encoding": "UTF-8" }
Julia
{ "shell_cmd": "/Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia "$file"" }
3. Add the prefix and save
4. Before running, select: Tools -> Build System -> Language X
5. Press Command + B to run