Skip to content

Instantly share code, notes, and snippets.

@fixlr
Created January 24, 2012 14:37
Show Gist options
  • Save fixlr/1670470 to your computer and use it in GitHub Desktop.
Save fixlr/1670470 to your computer and use it in GitHub Desktop.
## Heh.
set nowrap
set regexp
set tabstospaces
set tabsize 2
set autoindent
unset noconvert
## PHP syntax coloring
syntax "php" "\.php[2345s~]?$"
color brightblue start="<\?(php)?" end="\?>"
color blue start="<[^\?]" end="[^\?]>"
color cyan "\$[a-zA-Z_0-9]*"
color cyan "(\[)|(\])"
color red "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s"
color red "="
color green "[,{}()]"
color green "=="
color white "('[^']*')|(\"[^"]*\")"
color yellow start="<!--" end="-->"
color yellow start="/\*" end="\*/"
color yellow start="#" end="$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment