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

EJS 2

by nwoltman ST3

EJS syntax definition for Sublime Text 3

Details

Installs

  • Total 15K
  • Win 6K
  • OS X 6K
  • Linux 3K
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2
Windows 8 21 16 13 10 15 11 11 13 17 4 14 12 16 17 14 8 12 12 23 17 20 25 10 13 19 17 26 23 19 11 12 15 14 23 17 10 3 13 9 17 20 11 23 8 11
OS X 21 22 8 6 17 20 12 29 8 6 6 11 20 15 11 11 10 7 7 20 14 27 19 6 7 14 16 22 21 23 15 13 8 25 25 25 9 8 12 8 15 10 13 8 5 7
Linux 5 11 7 4 5 8 9 7 7 7 5 7 5 5 5 11 1 5 4 3 6 8 11 6 3 9 3 10 7 6 2 8 8 5 7 5 6 4 1 7 16 5 10 5 2 4

Readme

Source
raw.​githubusercontent.​com

EJS 2

EJS syntax definition for Sublime Text 3. Also includes EJS tag autocompletion and some snippets.

Installation

Use Package Control to install EJS 2.

Setting the default syntax

By default, files with the extension .ejs are opened with the EJS (<% %>) syntax.

If you'd like to open files with a different extension as EJS or if you want to use delimiters other than <% %>, follow these steps to set the default EJS syntax for an extension:

  1. Open an EJS file
  2. Select View from the menu
  3. Then SyntaxOpen all with current extension as...EJS 2EJS (<delimiter>)
  4. Repeat for each extension you want to open as EJS

This package includes syntax definitions for the following additional delimiters: <? ?>, <$ $>, <@ @>.

Color Scheme

EJS 2 comes with the Dracula EJS color scheme, which is a modified version of zertosh/dracula-theme. You can select it from: PreferencesColor SchemeEJS 2.

Oceanic Next is also a good color scheme for EJS that works right out of the box.

If you'd prefer to use a different color scheme, you may need to add lines like these to make the highlighting more compatible with EJS.

Preview (with Dracula EJS)

Snippets

In the HTML scope:

  • if+TAB - Inserts EJS if statement
  • for+TAB - Inserts EJS for loop

Contributing

Most problems are best addressed by opening an issue.