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 34K
  • Win 16K
  • Mac 13K
  • Linux 6K
May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14
Windows 2 6 2 6 13 13 10 5 10 11 10 7 7 15 3 11 11 11 9 8 13 7 3 8 5 8 9 1 6 3 6 9 15 5 3 8 11 8 15 11 9 1 11 8 13 12
Mac 0 3 1 1 7 3 1 4 5 6 3 6 4 4 2 5 5 8 3 5 3 4 5 5 6 7 7 5 4 4 3 5 3 1 2 3 8 6 5 5 2 6 5 11 8 4
Linux 0 1 6 3 2 1 4 1 3 7 3 8 2 4 3 5 4 4 4 5 3 3 2 5 3 2 4 4 1 5 2 3 6 5 2 6 3 3 0 5 3 6 5 6 2 3

Readme

Source
raw.​githubusercontent.​com

EJS 2

EJS syntax definition for Sublime Text 3. Includes EJS tag autocompletion and 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.