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
  • 9 months ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 235K
  • Win 102K
  • OS X 89K
  • Linux 44K
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 34 54 66 93 78 91 88 76 55 64 95 91 77 71 87 50 55 91 103 78 84 84 66 70 68 78 93 80 57 45 44 69 87 65 82 122 48 50 88 81 83 81 78 62 64 57
OS X 18 32 31 41 49 45 49 66 33 27 42 62 44 63 57 48 40 74 88 84 105 79 16 28 45 48 47 34 36 27 22 30 34 51 35 45 24 23 32 37 37 41 46 18 20 34
Linux 12 14 14 21 13 24 25 27 13 12 27 23 25 22 26 16 20 30 24 30 25 22 15 13 17 21 20 12 16 13 11 20 21 18 34 28 18 14 14 30 19 30 15 17 22 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.