An advanced Nunjucks templating syntax package for Sublime Text 3 & 4.
Note: This is "Nunjucks Toolbox" - a comprehensive package with enhanced features. There's also a separate "Nunjucks" package available.
-
📝 4+ New Snippets - Additional code templates for faster development
-
🎨 Advanced Highlighting - Better syntax recognition and color schemes
-
📝 1+ New Snippets - Additional code templates for faster development
-
🎯 Enhanced Completions - Improved auto-completion with better context awareness
-
🎨 Advanced Highlighting - Better syntax recognition and color schemes
-
📝 24+ New Snippets - Additional code templates for faster development
-
🎨 Complete Syntax Highlighting - Advanced Nunjucks template syntax support
-
📝 Smart Completions - Auto-completion for tags, filters, and structures
-
🏷️ Multiple File Extensions -
.nunjucks
,.nunjs
,.njk
,.html
-
🔧 Build System - Template validation and linting
-
⚡ Auto-Pairing - Intelligent bracket matching
-
💬 Comment Support - Line and block comments
-
🎯 Symbol Navigation - Jump to blocks, macros, and variables
-
🛠️ Enhanced Toolbox - Additional developer productivity features
- Install Package Control
- Open Command Palette (
Ctrl+Shift+P
/Cmd+Shift+P
) - Run "Package Control: Install Package"
- Search for "Nunjucks Toolbox" and install
- Download the latest release
- Extract to your Sublime Text
Packages/Nunjucks Toolbox
directory - Restart Sublime Text
The syntax automatically activates for:
.nunjucks
files.nunjs
files.njk
files.html
files with Nunjucks syntax
Type these triggers and press Tab
:
Trigger | Description | Output |
---|---|---|
for |
For loop | {% for item in items %}...{% endfor %} |
if |
If statement | {% if condition %}...{% endif %} |
block |
Template block | {% block name %}...{% endblock %} |
macro |
Macro definition | {% macro name(params) %}...{% endmacro %} |
extends |
Template inheritance | {% extends "base.html" %} |
Press Ctrl+B
/Cmd+B
to validate template syntax using Node.js.
Syntaxes/ # Syntax definitions
Completions/ # Auto-completion files
Snippets/ # Code snippets
Settings/ # Package settings
Preferences/ # Editor preferences
BuildSystems/ # Build system definitions
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details.