Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax coloring web pages



On 2004-10-30 19:51, Jan Erik Moström <email@hidden> wrote:

> In the next few months I'm going to generate a large number of
> code example and I would like to include them on various web pages
> ... but I would like to have the code syntax colored.
> 
> Is there some script/program available that does this?
> 
> I found a few tools but they all seemed to be for some Windows
> editor or Emacs. But are there some tools that works on a Mac
> (preferable together with BBEdit)?


For those who are interested in a solution for this: it turned out that the
answer was already on my machine !! 

enscript can be used to do some syntax highlighting and with a help of few
lines of Perl I can quickly generate my examples pages with a minimum of
work.

                        jem
PS
The last time I used enscript I don't think it was able to do much more than
print in landscape mode ... but I might be wrong
DS
-- 
Jan Erik Moström   www.mostrom.pp.se
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Syntax coloring web pages (From: Jan Erik Moström <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.