ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Jade

by davidrios ALL Top 100

A comprehensive textmate / sublime text bundle for the Jade template language.

Details

  • 2016.09.11.21.36.23
  • github.​com
  • github.​com
  • 9 years ago
  • 1 month ago
  • 13 years ago

Installs

  • Total 279K
  • Win 126K
  • Mac 102K
  • Linux 51K
Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8
Windows 1 0 0 0 0 0 0 0 2 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 2 0 0 1 1 0 1 0 0
Mac 0 1 0 0 2 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 3 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 2 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Jade.tmbundle

This was made specifically for Sublime Text 2, but was tested and works with Textmate 2 and Sublime Text 3

A TextMate Bundle for the Jade templating language. Implemented in JSON-tmLanguage, a compiled tmLanguage version is included. All language features that I know of (including some undocumented ones and quircks of the Jade parser) and some indent increase/decrease patterns are implemented.

A test.jade file is included for testing, it is a valid file, so you can compile it with jade to check its output.

A test_errors.jade file is also included for testing some syntax/semantic errors that are highlighted.

A highlighter using Python instead of JavaScript is also included for use with PyJade, you can either manually select Jade (Python) from the syntaxes list or give your file the extension .py.jade to select automatically (only on Sublime Text). Also included is a test.py.jade file that can be compiled with pyjade to test it.

Installation

Using Package Control in SUblime Text 2/3

Package control is a package manager for Sublime Text extensions (think of it like “apt-get” for Sublime Text). If you haven't already, install Package Control into your instance of Sublime Text and restart. Choose Package Controll: Install Package (press Ctrl/Cmd + p and then type pi), search for package named Jade and install. Restart if you cannot select “Jade” from syntax highlighter menu.

TextMate 2

mkdir -p ~/Library/Application\ Support/TextMate/Managed/Bundles
cd ~/Library/Application\ Support/TextMate/Managed/Bundles
git clone https://github.com/davidrios/jade-tmbundle.git Jade.tmbundle

Sublime Text manual installation

mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/davidrios/jade-tmbundle.git Jade

Replace '2' with '3' in case of Sublime Text 3.

Patches for additions are always welcome.