Difference between revisions of "Mir Templates"

From IndyMedia
Jump to: navigation, search
(Created page with "Templates: https://svn.indymedia.org.uk/ ==vim syntax highlighting== Add this to your ~/.vimrc to get HTML highlighting for the .template files: <syntaxhighlight lang="vim"> i...")
 
 
Line 3: Line 3:
 
==vim syntax highlighting==
 
==vim syntax highlighting==
  
Add this to your ~/.vimrc to get HTML highlighting for the .template files:
+
Add this to your ~/.vimrc to get HTML and CSS highlighting for the .template files:
  
 
<syntaxhighlight lang="vim">
 
<syntaxhighlight lang="vim">
Line 10: Line 10:
 
   augroup module
 
   augroup module
 
     autocmd BufRead,BufNewFile *.template set filetype=html
 
     autocmd BufRead,BufNewFile *.template set filetype=html
 +
    autocmd BufRead,BufNewFile stylesheet.*.template set filetype=css
 
   augroup END
 
   augroup END
 
endif
 
endif

Latest revision as of 22:57, 18 June 2011

Templates: https://svn.indymedia.org.uk/

vim syntax highlighting

Add this to your ~/.vimrc to get HTML and CSS highlighting for the .template files:

if has("autocmd")
  " mir templates 
  augroup module
    autocmd BufRead,BufNewFile *.template set filetype=html
    autocmd BufRead,BufNewFile stylesheet.*.template set filetype=css
  augroup END
endif
 
syntax on