472,958 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 2808
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Larry Werner | last post by:
We have source files with extension ".pc", which we would like to be treated by the text editor as if they are ".cpp" files for the purpose of syntax coloring. In Visual C++ 6.0 we could do that...
11
by: Xah Lee | last post by:
in some online documentations, for examples: http://perldoc.perl.org/perlref.html http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html http://www.haskell.org/hawiki/HaskellDemo ...
0
by: Markk | last post by:
Hi. I would like to ask If somebody don't have any small sample to coloring XML syntax, e.g. in RichTextBox. It can be in VB.NET or C#. I watched on SharpDevelop, but I could not understand...
2
by: Dan | last post by:
I'd like to show some XML text into an (editable) text box with some syntax coloring for tags, attributes etc. I don't need a full-blown commercial control, I'd just like to do some coloring on...
3
by: Nicolas | last post by:
Hi, I'm trying to import the syntax coloring settings I set on another installation of Visual Studio .NET, but I can't find any configuration file or option to achieve this. How can this be done...
7
by: braver | last post by:
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for...
3
by: sandromani | last post by:
Hi all, I am writing a webbased notepad and want to include syntax-coloring. The approach I have used is to set the font color and background color of the textarea to transparent, and place the...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.