A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
- Total 83K
- Win 39K
- Mac 29K
- Linux 15K
|Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3||Jan 2||Jan 1||Dec 31||Dec 30||Dec 29||Dec 28||Dec 27||Dec 26||Dec 25||Dec 24||Dec 23||Dec 22||Dec 21||Dec 20||Dec 19||Dec 18||Dec 17||Dec 16||Dec 15||Dec 14||Dec 13||Dec 12||Dec 11|
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 Pug 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 Pug parser) and some indent increase/decrease patterns are implemented.
A test.pug file is included for testing, it is a valid file, so you can compile it with pug to check its output.
A test_errors.pug file is also included for testing some syntax/semantic errors that are highlighted.
PyPug, you can either manually select
Pug (Python) from the syntaxes list or give your file the extension
.py.pug to select automatically (only on Sublime Text). Also included is a
test.py.pug file that can be compiled with
pypug to test it.
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
Pug and install. Restart if you cannot select “Pug” from syntax highlighter menu.
mkdir -p ~/Library/Application\ Support/TextMate/Managed/Bundles cd ~/Library/Application\ Support/TextMate/Managed/Bundles git clone https://github.com/davidrios/pug-tmbundle.git Pug.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/pug-tmbundle.git Pug
Replace '2' with '3' in case of Sublime Text 3.
Patches for additions are always welcome.