General Community > Scripting Help

PHP Syntax Highlighting Explanation

(1/1)

Oldiesmann:
This is my attempt to explain the different colors of highlighting for php code.

<?php
functions(their argurments);
$variables;
//comments
echo "Text and other stuff";
?>

Ok. This should do it.

Basically, the default syntax highlighting is:

php tags, functions and variables - blue
punctuation marks as a part of a function, function statements  - green
comments - orange
other things (text, normal punctuation marks) - red

Aquilo:
here are all the defalt php.ini settings for Syntax Highlighting

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <font color="??????"> would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF <- white
;highlight.default = #0000BB
;highlight.html    = #000000 <- black

Navigation

[0] Message Index

Go to full version