Smarty Templates provides comprehensive syntax highlighting for Smarty template files (.tpl) in Nova.
This extension provides full syntax highlighting support for:
- Control structures (
{if},{else},{elseif},{foreach},{for},{while},{switch},{case}) - Variables and properties (
{$variable},{$user.name},{$item.id}) - Built-in functions (
{assign},{block},{capture},{include},{extends}) - Variable modifiers/filters (
|upper,|lower,|date_format,|escape, etc.) - Comments (
{* Smarty comment *}) - Literal blocks (
{literal}...{/literal}) - Double and single brace syntax (
{{variable}}and{variable})
- HTML - Full support for HTML tags, attributes, and entities
- CSS - Syntax highlighting for styles within
<style>tags - JavaScript - Syntax highlighting for scripts within
<script>tags
- Open Nova
- Go to Extensions → Extension Library
- Search for "Smarty Templates"
- Click Install
- Download the latest release
- Double-click the
.novaextensionfile - Nova will install it automatically
Files with the .tpl extension will automatically use Smarty syntax highlighting.
Found a bug or have a feature request? Please open an issue on GitHub.
MIT License - see LICENSE file for details.