468,103 Members | 1,182 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

coloring various syntax

hello.

I've got a simple question.

I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++,
bash etc.

I've only found some CGI, apps, modules for Apache - but i can't use them
on my server
(due to my restricted permissions - i can use only PHP and MySQL).

Are there any PHP scripts for coloring syntax?

thanx in advance

greetings R
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 03-12-20
Jul 17 '05 #1
7 2641
"Ruthless" <ruthless@NO_SPAM.poczta.onet.pl> wrote in message
news:bt**********@nemesis.news.tpi.pl...
hello.

I've got a simple question.

I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++,
bash etc.

I've only found some CGI, apps, modules for Apache - but i can't use them
on my server
(due to my restricted permissions - i can use only PHP and MySQL).

Are there any PHP scripts for coloring syntax?

thanx in advance

greetings R
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 03-12-20


if you want to color a php script run it through php with the -s option

like this

$coloredText = `php -s $someFileName`;

if you look at my site, that is how the colored snippets are done.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #2
Ruthless <ruthless@no_spam.poczta.onet.pl> wrote or quoted:
I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++,
bash etc. [...] Are there any PHP scripts for coloring syntax?


http://mandala.co.uk/syntax_highlighting/ has a script which highlights
HTML and PHP.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #3
Ruthless wrote:
<snip>
Are there any PHP scripts for coloring syntax?

thanx in advance

greetings R


Why not just use highlight_file()?
Jul 17 '05 #4
yeah but i know how to color PHP syntax ;-)

i was asking for asm,c, c++ etc. syntax

any way... i'll try google once more

greetings R

Użytkownik "Ruthless" <ruthless@NO_SPAM.poczta.onet.pl> napisał w wiadomości
news:bt**********@nemesis.news.tpi.pl...
hello.

I've got a simple question.

I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++,
bash etc.

I've only found some CGI, apps, modules for Apache - but i can't use them
on my server
(due to my restricted permissions - i can use only PHP and MySQL).

Are there any PHP scripts for coloring syntax?

thanx in advance

greetings R
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 03-12-20

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 03-12-30
Jul 17 '05 #5
thanks Tim

at least sth more then coloring PHP ;D

i'll search once again for asm, c, c++ maybe i'll hunt sth on google

greetings R

Użytkownik "Tim Tyler" <ti*@tt1lock.org> napisał w wiadomości
news:Hq********@bath.ac.uk...
Ruthless <ruthless@no_spam.poczta.onet.pl> wrote or quoted:
I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++, bash etc. [...]

Are there any PHP scripts for coloring syntax?


http://mandala.co.uk/syntax_highlighting/ has a script which highlights
HTML and PHP.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 03-12-30
Jul 17 '05 #6
On 2004-01-03, Ruthless <ruthless@NO_SPAM.poczta.onet.pl> wrote:
thanks Tim

at least sth more then coloring PHP ;D

i'll search once again for asm, c, c++ maybe i'll hunt sth on google

Meaby you find more/better is u use "highlight" instead of "coloring"
as a keyword ;)
--
verum ipsum factum
Jul 17 '05 #7
Ruthless <ruthless@no_spam.poczta.onet.pl> wrote or quoted:

Re: http://mandala.co.uk/syntax_highlighting/
at least sth more then coloring PHP ;D

i'll search once again for asm, c, c++ maybe i'll hunt sth on google


I'd rather like one that does Java source code.

I might write one based on my current HTML highlighter someday...
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Larry Werner | last post: by
11 posts views Thread by Xah Lee | last post: by
reply views Thread by Markk | last post: by
2 posts views Thread by Dan | last post: by
3 posts views Thread by Nicolas | last post: by
7 posts views Thread by braver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.