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

Jade

by davidrios ST2/ST3 Top 100

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

Details

  • 2016.09.11.21.36.23
  • github.​com
  • github.​com
  • 1 year ago
  • 1 hour ago
  • 6 years ago

Installs

  • Total 250K
  • Win 110K
  • OS X 94K
  • Linux 46K
Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5
Windows 16 29 36 43 54 56 55 47 44 42 61 56 55 43 47 36 56 60 46 40 53 37 33 44 51 57 57 74 29 43 37 56 58 49 54 41 42 48 54 29 73 52 29 40 42 53
OS X 7 14 30 35 20 26 28 11 11 23 31 23 35 27 28 16 33 27 29 45 32 22 11 21 28 27 34 35 17 15 30 30 24 40 37 16 15 21 17 16 35 33 22 12 23 33
Linux 2 11 14 11 15 13 17 8 8 10 10 11 17 19 12 16 12 20 10 17 19 10 10 9 20 12 14 15 10 9 25 16 15 18 15 6 8 17 18 10 13 18 15 14 13 13

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.