eco
Syntax highlighting for Eco (Embedded CoffeeScript) Templates in Sublime Text 2
Details
Installs
- Total 7K
- Win 1K
- Mac 4K
- Linux 1K
Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 |
Mac | 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 |
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" }
]
}
]
`