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

R

rpardee

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
 
R

rpardee

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
 
W

William Morgan

Excerpts from (e-mail address removed)'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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top