Twig (+HTML) syntax mode for Coda 2 (and possibly SubEthaEdit)

A Twig (+HTML) syntax mode for Coda (and possibly SubEthaEdit) written by bobthecow and extended by Mikael Kristiansson.

Twig-HTML.mode currently supports:

  • Partial HTML syntax highlighting (with inline CSS and Javascript).
  • All Twig template tags and constructs.
  • Blocks and macros in the Code Navigator.
  • Autocomplete for core Twig tags and filters.
  • i18n extension tags and filters (including autocompletion).
  • Symfony2 core Twig tags and filters.

Installation

Drop Twig-HTML.mode into ~Library/Application Support/Coda 2/Modes. If that folder doesn't exist, create it.

Usage

  1. Install.
  2. Open a file with a .twig extension in Coda 2 or SubEthaEdit.
  3. Profit!