Page 1 of 1

php 5 syntax highlighting

Posted: Fri Mar 24, 2006 5:13 am
by s.dot
I uncommented these lines in my php.ini file and restarted apache, still all black text on my .phps pages. Is there something else?

Code: Select all

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

Posted: Fri Mar 24, 2006 9:38 am
by feyd
forget to AddType?

Code: Select all

AddType application/x-httpd-php-source .phps

Posted: Fri Mar 24, 2006 10:40 am
by Chris Corbyn
Yep, it'll be the addtype. I generally just use highlight_file() anyway :)

Posted: Fri Mar 24, 2006 7:52 pm
by s.dot
well crap

i was working on a highlighting syntax function :P
guess i'll stop that little project

Posted: Fri Mar 24, 2006 7:53 pm
by John Cartwright