By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

coloring various syntax

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.