Sublime Text

2019-02-10

### Why Sublime Text

Why Sublime Text

  1. A lightweight editor
  2. Very easy to hook up compilers/interpreters
  3. Simple to configure
  4. Plenty of plugins available
  5. Comfortable to use

Installing Sublime Text

Download for Mac

Installing Sublime Text Packages

installation guide

Manually import Package Control:

1. Preferences > Browse Packages

2. Copy Control.sublime-package into Installed Packages/

3. Restart Sublime Text

Installing Sublime Text Plugins

  1. Command + Shift + P
  2. Package Control: Install Package
  3. Watch the lower-left corner: an equals sign moves back and forth (repositories are loading)
  4. Just type the repository name

Recommended repository:

markdown

Integrating Compilers/Interpreters in Sublime Text

1.Tools -> Build System -> New Build System

2. Add the configurations for the following programming languages

Python

{ "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