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

To open files with a different extension as EJS, or to use delimiters other than <% %>, follow these steps to set the default EJS syntax for a file extension:

  1. Open an EJS file
  2. Select View from the menu bar
  3. Then select: 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 Scheme.

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.