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 31K
  • Win 14K
  • OS X 12K
  • Linux 5K
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 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4
Windows 6 6 10 10 8 8 10 5 17 7 6 12 14 13 3 2 12 12 12 14 12 6 8 14 7 6 15 7 6 7 3 15 12 13 10 7 11 12 8 11 13 6 3 7 4 8
OS X 2 2 9 6 6 8 10 7 6 5 7 0 7 6 2 1 4 7 2 6 8 3 3 4 3 5 4 9 5 1 6 9 5 9 16 4 2 1 5 7 10 7 1 4 4 5
Linux 0 1 1 2 3 1 3 2 1 1 2 2 8 3 2 4 3 3 2 7 2 1 2 4 5 1 3 5 2 2 4 4 3 5 5 2 3 1 6 5 5 0 0 2 4 5

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.