BBEdit codeless language module for the Pug template engine.
Requires BBEdit v10.1 or greater by Barebones.
The file is a .plist
property list.
This mostly kinda-sorta works but some problems still need resolving
- Function and keyword highlighting is a little too enthusiastic
- The good news is that it won't break anything
- Suggestions welcome
-
Copy
pug.plist
to the Language Modules folder in BBEdit’s Application Support folder:~/Library/Application Support/BBEdit/Language Modules/
-
Relaunch BBEdit
An easy way to open the correct folder is to choose Language Modules from the Folders menu, under the BBEdit application menu.
- Keys are listed following the order in Barebones’s Codeless Language Modules documentation
- HTML elements are grouped by function following Mozilla’s reference
- Deprecated elements are listed last under their own section but commented out (check here first if you find that an HTML element isn’t being coloured correctly)
- The file is heavily commented, largely for the benefit of future me, but also hoping that it might help others.
- Note for Usanians: ‘colour’ = ‘color’ (I’m a Brit)
END