| | |
coloring of source code
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2005
Posts: 28
Reputation:
Solved Threads: 0
hello,
today i visited the source code section of daniweb and i was amazed to see that codes inside text box were colored according to their syntax.here is the url of the page.
http://www.daniweb.com/code/snippet25.html
in which language this is coded .can i do this in php .can anybody provide me some help.perhaps cscgal can help me out.
today i visited the source code section of daniweb and i was amazed to see that codes inside text box were colored according to their syntax.here is the url of the page.
http://www.daniweb.com/code/snippet25.html
in which language this is coded .can i do this in php .can anybody provide me some help.perhaps cscgal can help me out.
The color coding was accomplished by a perl syntax highlighter known as the beautifier (www.beautifier.org), later ported to php. Alternatively, there are two built-in php functions known as highlight_string() and highlight_file() which output syntax highlighted PHP. For example, [php]
<?php
highlight_string('<?php phpinfo(); ?>');
?> [/php]
For more information,
http://us4.php.net/manual/en/functio...ght-string.php
http://us4.php.net/manual/en/functio...light-file.php
<?php
highlight_string('<?php phpinfo(); ?>');
?> [/php]
For more information,
http://us4.php.net/manual/en/functio...ght-string.php
http://us4.php.net/manual/en/functio...light-file.php
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
also make sure to check out GeSHi
http://qbnz.com/highlighter/
this will highlight virtually any language you can think of and has sooo many options
http://qbnz.com/highlighter/
this will highlight virtually any language you can think of and has sooo many options
I use PHP Coder Pro.... Nice utility with some built in functionality... Best of all... it is FREE!
www.phpide.com/go/downloads.htm
www.phpide.com/go/downloads.htm
•
•
Join Date: May 2005
Posts: 28
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by cputek2k
I use PHP Coder Pro.... Nice utility with some built in functionality... Best of all... it is FREE!
www.phpide.com/go/downloads.htm
we are talking about highlighting source codes in web-pages not in IDE.if you know about it ,please tell me. the link u posted was down,but i guessed from the url that it could be IDE download site.
![]() |
Similar Threads
- How to download source code for NetBeans and Eclipse? (Java)
- Source code for printf, scanf, cin, cout? (C)
- Source code implementing Latent Semantic Indexing (C++)
- RE: Leaked Windows Source Code (IT Professionals' Lounge)
- Windows 2K source code? (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: PHP/MySQL Programming
- Next Thread: Automating a script
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl data database date directory display download dynamic echo email error file files folder foreach form forms function functions google href htaccess html httppost image include insert integration ip java javascript joomla limit link links login loop mail md5 menu mlm mod_rewrite multiple mysql mysql_real_escape_string oop parse paypal pdf php problem query radio random recursion regex remote replace script search server session sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video volume votedown web xml youtube






