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.
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]
i thought i will not get reply, thats why i started coding my own function.my function replaced all the keywords with custom colors and it also changed the colors of the comments, but it had some bugs.but now i know the site i will be able to complete my function easily.
hello cputek2k,
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.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.