Hi, is there some Javascript/CSS snippet or perhaps another solution to parse PHP source code intended as content on a web page so that it has highlighted elements for commands, variables, brackets etc?
A:
i don't know if i've understood well your question bu if you want a syntax highlight on a php function use the highlight_file function
mck89
2010-01-29 11:37:08
A:
Github's GISTs can be made public and included directly in your pages. I really wish they'd add tabbing to the editor window, however.
cballou
2010-01-29 12:04:54
+1
A:
PHP has a built in feature that allows you to rename your PHP files to ".phps", this stands for "PHP Source" or something. This will display nicely formatted PHP code for you.
Sam152
2010-01-29 12:07:20