ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

eco

by davidjrice ST2/ST3

Syntax highlighting for Eco (Embedded CoffeeScript) Templates in Sublime Text 2

Details

  • 2013.02.01.14.22.56
  • github.​com
  • github.​com
  • 7 years ago
  • 3 hours ago
  • 7 years ago

Installs

  • Total 7K
  • Win 1K
  • OS X 4K
  • Linux 1K
Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9
Windows 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 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 1
OS X 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0
Linux 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 1 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

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 hit return
  • Enter https://github.com/davidjrice/sublime-eco.git in the sublime console that appears and hit return.
  • 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 hit return
  • 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;

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" }
    ]
  }
]
`