Skip to content
A Brackets extension to highlight Twig syntax inside HTML files.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.npmignore
.travis.yml
CHANGELOG.MD
LICENSE
NOTICE
README.MD
build.sh
main.js
package.json
yarn.lock

README.MD

Brackets Twig

A Brackets extension to highlight Twig syntax inside HTML files.

Build Status Dependency Status

Install from URL

  1. Open the the Extension Manager from the File menu
  2. Copy paste the URL of the github repo or zip file

Install from file system

  1. Download this extension using the ZIP button above and unzip it.
  2. Copy it in Brackets' /extensions/user folder by selecting Help > Show Extension Folder in the menu.
  3. Reload Brackets.

FAQ

Why Twig isn't defined as default language for .twig files ?

It's because the HTML language already define itself as default language for .twig files and there is no way to override this behavior programmatically.

But you can change it quite easily, start by opening one of your twig files in Brackets, then switch the language to Twig and then click on the button which is at the top of the language menu (it says "Set as Default for .TWIG Files")

You can’t perform that action at this time.