[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

rpardee@gmail.com

2/21/2005 4:00:00 PM

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

3 Answers

Makoto Kuwata

2/22/2005 1:36:00 AM

0

How about gonzui?
http://gonzui.sourceforge.net/ind...

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

rpardee@gmail.com

2/22/2005 3:49:00 AM

0

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

2/22/2005 1:28:00 PM

0

Excerpts from rpardee@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-ruby-talk@masanjin.net>