Click to See Complete Forum and Search --> : Formatting code
Do any of you know of a good php code out there which will format php and/or javascript and/or html?
e.g this <?php echo "this is in different colours" ?>
will become
<?php echo "this is in different colours" ?>
Thanks
Phill Pafford
06-26-2008, 07:42 AM
This sounds like an IDE question or are you trying to display some PHP code?
If IDE try these free ones:
http://www.aptana.com/
http://www.eclipse.org/pdt/
If you trying to display some code try this:
http://programmabilities.com/xml/?id=15
http://www.sitepoint.com/article/highlight-source-code-php
http://perishablepress.com/press/2007/12/05/5-easy-ways-to-display-syntax-highlighted-php-code/
NogDog
06-26-2008, 12:40 PM
For displaying code in a script's output, see the highlight_string (http://www.php.net/highlight_string)() and highlight_file (http://www.php.net/highlight_file)() functions.
Thanks, those suggestions were great. Do you know any codes to highlight actionscript/javascript?