Tazz Posted January 30, 2010 Share Posted January 30, 2010 Can anyone give me a link to some examples of Javascript or similar that one can use to display PHP code in a development blog withoug actually parsing the code. Similar to this forums <code></code> tags. php code here Link to comment https://forums.phpfreaks.com/topic/190339-display-php-code-in-development-blog/ Share on other sites More sharing options...
teamatomic Posted January 30, 2010 Share Posted January 30, 2010 <?php echo "blah"; ?> Link to comment https://forums.phpfreaks.com/topic/190339-display-php-code-in-development-blog/#findComment-1004154 Share on other sites More sharing options...
Tazz Posted January 30, 2010 Author Share Posted January 30, 2010 There are some javascript libraries that actually colour each of the PHP keywords accordingly. I don't simply want to display normal text, nice formatting and appropriate colours for the keywords and variables too. Link to comment https://forums.phpfreaks.com/topic/190339-display-php-code-in-development-blog/#findComment-1004406 Share on other sites More sharing options...
Tazz Posted February 1, 2010 Author Share Posted February 1, 2010 http://php.net/manual/en/function.highlight-file.php Link to comment https://forums.phpfreaks.com/topic/190339-display-php-code-in-development-blog/#findComment-1005075 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.