Skip to content
Myr

Merge pull request #869 from jwflory/docs/vim-syntax

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update integration docs for Vim syntax highlighting

authored by David Lord · committed by GitHub · parents a7ba0b6, 287c4ac · Browse files · 1 file+13 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−8 removed

  • other:+13 added−8 removed

1 file+13 added−8 removed

modified:docs/integration.rst+13 added-8 removed
79 unmodified lines
8081TextMate82--------8384There is a `bundle for TextMate`_ that supports syntax highlighting for Jinja1 and Jinja2 for text based85templates as well as HTML. It also contains a few often used snippets.84There is a `bundle for TextMate`_ that supports syntax highlighting for Jinja185and Jinja2 for text based templates as well as HTML. It also contains a few86often used snippets.8788.. _bundle for TextMate: https://github.com/mitsuhiko/jinja2-tmbundle8990Vim91---9292A syntax plugin for `Vim`_ exists in the Vim-scripts directory as well as the93`ext` folder at the root of the Jinja2 project. `The script94<http://www.vim.org/scripts/script.php?script_id=1856>`_ supports Jinja1 and95Jinja2. Once installed two file types are available `jinja` and `htmljinja`.96The first one for text based templates, the latter for HTML templates.93A syntax plugin for `Vim`_ is available `from the jinja repository94<https://github.com/pallets/jinja/blob/master/ext/Vim/jinja.vim>`_. The script95supports Jinja1 and Jinja2. Once installed, two file types are available96(``jinja`` and ``htmljinja``). The first one is for text-based templates and the97second is for HTML templates. For HTML documents, the plugin attempts to98automatically detect Jinja syntax inside of existing HTML documents.9998Copy the files into your `syntax` folder.100If you are using a plugin manager like `Pathogen`_, see the `vim-jinja101<https://github.com/mitsuhiko/vim-jinja>`_ repository for installing in the102``bundle/`` directory.103104.. _Babel: http://babel.pocoo.org/105.. _Vim: http://www.vim.org/106.. _Pathogen: https://github.com/tpope/vim-pathogen