Prerequisites Link to heading

node.js Link to heading

First we’ll install node.js, as SublimeLinter depends on it.

sudo apt-get install build-essential
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar xzf node-v0.10.26.tar.gz
cd node-v0.10.26/
./configure && make && sudo make install
sudo npm install -g jshint

PHP5 Link to heading

This is required for all PHP related linting.

sudo apt-get install php5 php5-cli

CTags Link to heading

We can’t have a proper code editor without CTags.

sudo apt-get install ctags

Sublime Packages Link to heading

Package manager Link to heading

First, install the package manager and restart Sublime Text. The following packages can be downloaded from the Package Manager. It can be accessed by pressing Ctrl+Shift+P and typing package control install package in the prompt.

Alignment Link to heading

The settings for the Alignment plugin reside in the Preferences > Package Settings > Alignment > Settings - User file.

{
    "align_indent" : true,
    "mid_line_tabs" : false,
    "alignment_chars" : ["=", ":"],
    "alignment_space_chars" : ["=", ":"],
    "alignment_prefix_chars" : [
        "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
    ]
}

SublimeLinter Link to heading

CTags Link to heading

BracketHighlighter Link to heading

Block Cursor Everywhere Link to heading

DocBlockr Link to heading

Sublime Specific Configuration Link to heading

These settings reside in the Preferences > Settings - User file.

highlight_line Link to heading

"highlight_line" : true

highlight_modified_tabs Link to heading

"highlight_modified_tabs" : true

Global hotkeys Link to heading

These settings reside in the Preferences > Key Bindings - User file.

[
    { "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
    { "keys": ["ctrl+f5"], "command": "refresh_folder_list" },
    { "keys": ["ctrl+shift+a"], "command": "alignment" }
]