Skip to content

Instantly share code, notes, and snippets.

@voldern
Created March 9, 2012 15:25
Show Gist options
  • Save voldern/2006990 to your computer and use it in GitHub Desktop.
Save voldern/2006990 to your computer and use it in GitHub Desktop.
(font-lock-add-keywords
'php-mode `(("\\(<\\?php echo\\) \\($[^\n>]*\\) \\(\\?>\\)"
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "{")
(compose-region (match-beginning 3)
(match-end 3) "}")
nil)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment