arunpatal Posted October 28, 2013 Share Posted October 28, 2013 Hi, Is there any function like highlight_string in PHP for Javascript..... I just need a simple function without including many files.... PHP example <?php highlight_string('<?php echo "world"; ?>') ?> Quote Link to comment https://forums.phpfreaks.com/topic/283356-syntax-highlight/ Share on other sites More sharing options...
nogray Posted October 28, 2013 Share Posted October 28, 2013 No, you'll need a javascript code highlighter. If you want something simple and fast, you can check google code prettify http://code.google.com/p/google-code-prettify/ Quote Link to comment https://forums.phpfreaks.com/topic/283356-syntax-highlight/#findComment-1455923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.