I'm using the :php
HAML filter that is supplied with haml-contrib
to write blocks of php code inside a haml file.
this allows me to write:
!!! 5
%html
%body
-# HAML code ...
:php
// php code ...
I want to hightlight the php code in vim using this vim-tip. However, the default php syntax file that is supplied with my stock vim only highlights php code that is inside <?php
,?>
tags.
How can I get around this?
Note that I can get the vim-tip to work, so highlighting the following:
!!! 5
%html
%body
-# HAML code ...
:php
<?php
// php code ...
?>
does work! It just creates bad HAML output (double <?php ... ?>
tags) and doesn't reflect the simplicity I want to achieve using HAML.