SublimeERB
TextMate Style ERB Block for Sublime Text
Details
Installs
- Total 56K
- Win 12K
- Mac 29K
- Linux 14K
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
Mac | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
A Port of TextMate's ERB support for Sublime Text 2
Installation
Sublime Package Control
I suggest using Sublime Package Control. Once you have Sublime Package control installed, you can install “SublimeERB” in a few easy steps.
Press CTRL + SHIFT + P
on Windows and Linux and CMD + SHIFT + P
on a Mac to bring up Sublime's Command Palette, then type install package
to bring up Package Control's package selector. It should be the first selection. Type “SublimeERB,” which, again, should be the first selection, and then hit enter. You should now have the proper package installed, but you will still need to add a keybinding to use it.
Sublime Text 3 Beta Install
Make sure to follow the updated instructions for installing package control. Even with the package being installed via package control, you still need to modify your keybinding file as per the instructions below. The manual installation listed below still works for Sublime Text 3.
Manual Installation
Clone the repository and symlink file to Sublime's User Directory:
OS X
git clone git@github.com:eddorre/SublimeERB.git ~/.sublime_erb
ln -fs ~/.sublime_erb/ ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/SublimeERB
Linux
git clone git@github.com:eddorre/SublimeERB.git ~/.sublime_erb
ln -fs ~/.sublime_erb/ ~/.config/sublime-text-2/Packages/SublimeERB
Usage
Add Keybinding
Open your User Keybinding File and add the following keybinding to activate the toggle command in all file types:
[
{ "keys": ["ctrl+shift+."], "command": "erb" }
]
…or only in the most common ERB contexts:
[
{ "keys": ["ctrl+shift+."], "command": "erb", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" }
]
}
]
Now you can use ctrl+shift+.
to create and toggle between ERB tags. NOTE: On a Mac use the command key for the ctrl key.
Update To Latest Version
cd ~/.sublime_erb
git pull --rebase
Sample
Copyright
SublimeERB is Copyright © 2011 Carlos Rodriguez, released under the MIT License.