Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SucuriNew to Visual Studio Code? Get it now.
Sucuri

Sucuri

Marcos Stefani Rosa

|
2 installs
| (2) | Free
Basic language support for Sucuri template engine
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sucuri for VS Code

Welcome to the official Sucuri language support extension for Visual Studio Code!

Sucuri

Sucuri is a simple and efficient template engine for Python projects, featuring a clean and minimalist syntax inspired by PugJS.

Features

This extension provides the following features when editing .suc files:

  • Syntax Highlighting: Accurate coloring for PugJS-inspired syntax, highlighting entity tags, CSS shortcuts (.class, #id), injected variables ({variable}, #loop_var), filters ({var | upper | title}), loop variables with dot notation (#item.name), and language-specific markup flow (<if>, <for>).
  • Common Error Validation: Clearly marks invalid commas , inside attribute parentheses (which is illegal according to the language specification).
  • Built-in Snippets:
    • Type for to insert <for ...> and <endfor>.
    • Type if to insert <if ...> and <endif>.
    • Type include to create an import template reference.
    • Type inject or + to use the imported component.
    • Type injectp to inject a component with inline parameters.
    • Type extends to inherit a parent layout with a block.
    • Type block to define a named block region.
    • Type style to inject a CSS file.
    • Type script to inject a JS file.
    • Type list to insert the built-in list/checkbox macro.
    • Type table to insert the built-in table macro.
  • Formatting and Auto-closing: Support for automatic closing of brackets, quotes, and comments /* */ and //.

Usage

To compile/render the edited code, remember that you need the Python interpreter:

# Installing the Sucuri interpreter
pip install sucuri

# Compilation example using the CLI
sucuri build source.suc -o rendered_template.html

Contributing

Issues or suggestions regarding the base language and/or the extension:

  • Issue Tracker: https://github.com/marcosstefani/sucuri/issues
  • Base Repository: https://github.com/marcosstefani/sucuri

License

Distributed under the BSD License. (C) 2018 Marcos Stefani Rosa.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft