Wikia

Vim Tips Wiki

Changes: Script:1487

Edit

Back to page

(standard format)
(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
 
Line 1: Line 1:
{{ScriptComments|1487|django.vim: syntax highlighting for Django templates}}
+
{{ScriptComments|django: syntax highlighting for Django templates}}
   
 
==Comments==
 
==Comments==

Latest revision as of 07:29, November 15, 2011

Use this page to discuss script 1487 django: syntax highlighting for Django templates

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

CommentsEdit

I wanted to use folds with the htmldjango syntax file, but the curly brackets used for template variables were clashing with the default fold markers ("{{{,}}}"). I just added the "oneline" option to line 30 of htmldjango.vim (V. 2007 Jan 26). Eg.:

  syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display containedin=ALLBUT,@djangoBlocks

Became:

  syn region djangoVarBlock start="{{" end="}}" oneline contains=djangoFilter,djangoArgument,djangoVarError display containedin=ALLBUT,@djangoBlocks

Around Wikia's network

Random Wiki