home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / nano / php.nanorc < prev    next >
Encoding:
Text File  |  2010-04-15  |  687 b   |  31 lines

  1. ## Here is an example for PHP
  2. ##
  3. syntax "php" "\.php[2345s~]?$"
  4.  
  5. ## php markings
  6. color brightgreen "(<\?(php)?|\?>)"
  7.  
  8. ## functions
  9. color white "\<[a-z_]*\("
  10.  
  11. ## types
  12. color green "\<(var|float|global|double|bool|char|int|enum|const)\>"
  13.  
  14. ## structure
  15. color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"
  16.  
  17. ## control flow
  18. color magenta "\<(goto|continue|break|return)\>"
  19.  
  20. ## strings
  21. color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
  22.  
  23. ## comments
  24. color brightblue "//.*"
  25. color brightblue start="/\*" end="\*/"
  26. #color blue start="<" end=">"
  27. #color red "&[^;[[:space:]]]*;"
  28.  
  29. ## Trailing whitespace
  30. color ,green "[[:space:]]+$"
  31.