Created
November 18, 2015 09:20
-
-
Save freimanas/a95e9ad38b30332310da to your computer and use it in GitHub Desktop.
PHP nano highlight /usr/share/nano/php.nanorc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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