Reputation: 1
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?
Upvotes: 0
Views: 454
Reputation: 19636
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.
Upvotes: 1
Reputation: 43457
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.
Upvotes: 0
Reputation: 19241
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
Upvotes: 0