Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

multi-language code -> html w/syntax highlighting--start me out

0 views
Skip to first unread message

rpa...@gmail.com

unread,
Feb 21, 2005, 11:00:26 AM2/21/05
to
Hey All,

I've got this text editor I like (UltraEdit) which lets you give it a
list of languages & several language-specific lists of keywords (in a
text file) and then separately specify what colors you want said
keywords to display in. (I'm not sure where the text color info is
stored just yet, but let's pretend I've got that in some convenient
format). This is a multi-language thing, so I can do ruby in it, and
sas, and pl/sql, etc.

I'd like to write a ruby script that would use my UltraEdit config info
& take an input program file & spit out a corresponding .html file
w/the code all nicely highlighted, using the same color schemes I'm
using in UE.

What ruby libraries should I be looking to use for this type of thing?

Thanks!

-Roy

kwatch

unread,
Feb 21, 2005, 8:35:37 PM2/21/05
to
How about gonzui?
http://gonzui.sourceforge.net/index.html.en

I'm sorry if it is not what you want.
But it is written in Ruby so you can extend or customize it to suit
your request.

--
regards
kwatch

rpa...@gmail.com

unread,
Feb 21, 2005, 10:49:12 PM2/21/05
to
Thanks very much--I'll have a look at that.

In the meantime I'm having fun trying to get something together just
w/IO & regexes (and a little win32ole for reading the registry).

Thanks!

-Roy

William Morgan

unread,
Feb 22, 2005, 8:28:11 AM2/22/05
to
Excerpts from rpa...@gmail.com's mail of 21 Feb 2005 (EST):

> I'd like to write a ruby script that would use my UltraEdit config
> info & take an input program file & spit out a corresponding .html
> file w/the code all nicely highlighted, using the same color schemes
> I'm using in UE.
>
> What ruby libraries should I be looking to use for this type of thing?

I don't think you necessarily need any libraries. "puts" and some
regular expressions are probably enough.

--
William <wmorgan-...@masanjin.net>


0 new messages