https://github.com/nfour/sublime-ect
Syntax highlighting for ECT and ECO embedded CoffeeScript HTML
https://github.com/nfour/sublime-ect
Last synced: 5 months ago
JSON representation
Syntax highlighting for ECT and ECO embedded CoffeeScript HTML
- Host: GitHub
- URL: https://github.com/nfour/sublime-ect
- Owner: nfour
- Created: 2012-11-07T00:19:19.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-17T07:03:15.000Z (over 13 years ago)
- Last Synced: 2025-11-06T09:20:35.509Z (9 months ago)
- Homepage: http://ectjs.com
- Size: 164 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Sublime Text 2 Syntax highlighting for ECT, embedded CoffeeScript HTML
Additionally, as ECT is backward compatible with ECO, so is this.
See: http://ectjs.com
Comes with sets of open and close tags:
```
<% %>
<< >>
?>
{{ }}
```
You would specify `open` and `close` options when you create a new ECT engine/renderer, within your application.
### Install
Via the [Sublime Package Manager](http://wbond.net/sublime_packages/package_control), under `ECT`.
Or simply clone this repo into `/Sublime Text 2/Data/Packages/ECT/`
### Optional
You may create your own tags by copying a .tmLanguage file.
The `{{ }}` template, `ect_html3.tmLanguage`, would be the easiest.
Replace all occurances (they're all contained within one `` around line `500`) of each open and close tag with your own tags
Also, be sure to rename the .tmLanguage near the top of the file:
```
name
ECT {{
```
Note that html characters must be encoded within the .tmLanguage files. eg. `<` is expressed as `<`