From: Gregory Brown Date: 2008-10-19T01:43:55+09:00 Subject: Re: Low level syntax highlighting tools? On Sat, Oct 18, 2008 at 12:32 PM, ara.t.howard wrote: > > On Oct 18, 2008, at 9:41 AM, Gregory Brown wrote: > >> I'll confess I didn't research this deeply, in hopes that someone >> knows of a library and can point me right at it. >> >> Are there any syntax gems out there that'll spit back simple strings >> and color values, >> something like: >> >> [["def foo\n", "ccffcc"], [" bar()\n", "ffffff" ], ["end", "ccffcc"]] >> >> If such a tool exists, I can rejoice, because it'd allow me to build >> an awsum Prawn based presentation builder. >> >> -greg > > > > it seems like using Hpricot against one of the current highlighters would > work - just skim out innerHTML/class pairs right? Hmm... that's an interesting idea too. I'll take a quick look at how easy it is to get under the hood of Code Ray, and if it seems complicated, such a hack would probably do fine. -greg -- Technical Blaag at: http://blog.majesticseacreature.com | Non-tech stuff at: http://metametta.blogspot.com