eco
Syntax highlighting for Eco (Embedded CoffeeScript) Templates in Sublime Text 2
Details
Installs
- Total 7K
- Win 1K
- Mac 4K
- Linux 1K
Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Syntax highlighting for Eco Embedded CoffeeScript Templates in Sublime Text 2
It is based on an edited version the HTML (RAILS) Syntax from the rails textmate bundle.
Installation
- First, install Package Control.
The following instructions are temporary until sublime-eco is added to the package control source repository.
- Hit
command+shift+p
and type"Package Control: Add Repository"
and hitreturn
- Enter
https://github.com/davidjrice/sublime-eco.git
in the sublime console that appears and hitreturn
. - Now the repository is available, follow the rest of the instructions below to install the package.
The following instructions will be all that's necessary after sublime-eco is available through package control directly.
- Hit
command+shift+p
and type"Package Control: Install Package"
and hitreturn
- Type “eco”, this package should appear in the dropdown, select it from the list and hit
return
Optional
To get “Textmate ERB Style” opening and closing of ECO blocks. You will also want to;
- Install SublimeERB
You should then open your Preferences -> Keybindings - User
and add the key binding for the ERB command.
The simple option is to allow this command in any file.
[
{ "keys": ["ctrl+shift+."], "command": "erb" }
]
However if you're like me you may want to restrict the key binding to those files where it makes sense to have that command. (Note the added text.html.eco at the end of the string)
[
{ "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, text.html.eco" }
]
}
]
`