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"; ?>') ?> 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/ Link to comment https://forums.phpfreaks.com/topic/283356-syntax-highlight/#findComment-1455923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.