Skip to content

Instantly share code, notes, and snippets.

@freimanas
Created November 18, 2015 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freimanas/a95e9ad38b30332310da to your computer and use it in GitHub Desktop.
Save freimanas/a95e9ad38b30332310da to your computer and use it in GitHub Desktop.
PHP nano highlight /usr/share/nano/php.nanorc
syntax "php" "\.php|\.inc$"
color white start="<\?(php)?" end="\?>"
color magenta start="<[^\?]" end="[^\?]>"
color magenta "\$[a-zA-Z_0-9]*"
color brightblue "\->[a-zA-Z_0-9]*"
color cyan "(\[)|(\])"
color brightyellow "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while|return|public|private|proteted|static)\s"
color brightyellow "\<(try|throw|catch|operator|new)\>"
color white "="
color green "[,{}()]"
color green "=="
color brightgreen "('[^']*')|(\"[^"]*\")"
color yellow start="/\*" end="\*/"
color yellow start="#" end="$"
color yellow "//.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment