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

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.