Syntax Highligth on some special cases

When I work with Zend Framework on views pages I see this:

Is there a way that force the highligth(I obtained this by means of GIMP)?


Thank you,



Hi there,

By using some PHP code (specific function calls like $headScript->captureStart/End() ) as delimiters? No.

The best I may suggest in such situation is:

  • Extract such JavaScript code into a separate file (no need for extra <script> tags there)
  • Name that file with .js.php extension -- it will automatically make JavaScript as outer language in that file (instead of default HTML). If you omit such double extension .. then you may still do that but manually (at Template Data Languages settings page)
  • Use PHP's include or require in original file to acquire and use such file content

Please sign in to leave a comment.