Ideally I would have liked to have written the code myself and did start off doing it that way, but I decided to save myself the time and effort and integrate a CPAN module .
>>I would definately default it to [perl] unless it parses php code as well. =) <<
Well because the syntax between perl and php is "similar", it does parse to a certain degree. See the demo below:
The plugin is on its way to you via email. Thanks.