Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

native php function to highlight javascript?

Is there any native PHP function as highlight_string(); but for javascript ?

Or, if not, is there any PHP function (homemade) to do it?

EDIT: I want to use PHP function to COLORIZE javascript

like image 980
genesis Avatar asked Feb 25 '26 06:02

genesis


1 Answers

I have had great success with GeSHi. Easy to use and integrate in your app and it supports a lot of languages.

like image 125
Sander Marechal Avatar answered Feb 27 '26 19:02

Sander Marechal