Skip to content

anime-tavern/language-ejs-2-atom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EJS Language for Atom

The current package, language-ejs, is non-functional and needed to be improved into a working standard. This is EJS-2, the working EJS syntax highlighting grammar for the Atom editor.

Installation

Currently, this is a development install and is done manually. Go to your Atom's package folder (defaults to /Users/YourUsername/.atom/packages), create a folder named language-ejs-2 and extract this repository into that folder. Reload Atom.

Overriding the HTML Syntax for EJS file types

Usually, when you have a defined <html> tag in your document, then even if the file type is .ejs HTML will still be used as the default syntax highlighting. You can override this by editing your Atom's core config.

Go to File > Config and fine the core section and add (or edit) this customFileTypes definition into it so your core now looks like this (plus whatever was originally there)

  core:
    customFileTypes:
      "source.ejs-2": [
        "ejs"
      ]

Now all EJS file types will use the proper syntax highlighting defined by this Atom package for EJS.

Screenshot

EJS Syntax Highlights for Atom EJS Syntax Highlights for Atom

Made for use in Anime Tavern's development. Report issues to the Issues tab and we'll get it solved.

About

A working reimplementation of the defunct language-ejs syntax highlighting package for the Atom code editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published