Formatting ruby code in html

Is there a similar function in Ruby to the
highlight_file function of php…this function takes a
file and outputs it in html…

PHP: highlight_file - Manual

You might like http://jimweirich.umlcoop.net/software/source2html/

···


– Jim Weirich / Compuware
– FWP Capture Services
– Phone: 859-386-8855

If someone has the skill and interest, I think a port or adaptation of
the Lucene search program to Ruby would be very nice to have. I have
the interest but not the skill.

Information about Lucene can be found at:

http://jakarta.apache.org/lucene/docs/index.html

I also have the same interest in Perl’s Text::Balanced module.
Information available here:

http://search.cpan.org/author/DCONWAY/Text-Balanced-1.95/lib/Text/
Balanced.pm

Regards,

Mark

There’s rucene:

http://rubyforge.org/projects/rucene/

But I’m not sure how far Erik has gotten with it yet…

Yours,

tom

···

On Thu, 2003-09-25 at 12:48, Mark Wilson wrote:

If someone has the skill and interest, I think a port or adaptation of
the Lucene search program to Ruby would be very nice to have. I have
the interest but not the skill.

Information about Lucene can be found at:

Apache Lucene - Apache Lucene Core

I am … fitfully working on Text::Balanced. It’s difficult because it’s
very idiomatic Perl and depends on a feature (pos and \G) that there are
ways to emulate in Ruby, but nothing that quite works the same way.

I have some work I’m doing on Ruwiki to make it a Webrick servlet, and then
I think I’m going to try to approach this again.

-austin

···

On Fri, 26 Sep 2003 01:48:23 +0900, Mark Wilson wrote:

I also have the same interest in Perl’s Text::Balanced module.
Information available here:

Browse DCONWAY/Text-Balanced-1.95/lib/Text - metacpan.org
Balanced.pm


austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.09.25
* 18.23.39

Well…I will be seeing Erik in a couple of weeks…I will let him know
that folks want rucene!!!

-rich

···

On Thursday, September 25, 2003, at 02:07 PM, Tom Copeland wrote:

On Thu, 2003-09-25 at 12:48, Mark Wilson wrote:

If someone has the skill and interest, I think a port or adaptation of
the Lucene search program to Ruby would be very nice to have. I have
the interest but not the skill.

Information about Lucene can be found at:

Apache Lucene - Apache Lucene Core

There’s rucene:

http://rubyforge.org/projects/rucene/

But I’m not sure how far Erik has gotten with it yet…

Yours,

tom

Tom Copeland tom@infoether.com skrev den Fri, 26 Sep 2003 03:07:15 +0900:

If someone has the skill and interest, I think a port or adaptation of the Lucene search program to Ruby would be very nice to have. I have the interest but not the skill.

Information about Lucene can be found at:

Apache Lucene - Apache Lucene Core

There’s rucene:

http://rubyforge.org/projects/rucene/

But I’m not sure how far Erik has gotten with it yet…

I also have a start of a port but not the time to complete it.
If someone intends to work on a Ruby lucene I can probably
dig it out and pass the code over. Don’t remember how close to complete it is.

Lucene is powerful stuff. For many needs I think a Ruby Lucene
to index objects that are then saved in a straight array
(or via Madeleine + cache) would beat SQL db solutions any day.
I’ve never quite understood why you should have to prespecify
the form of your db objects. Why not allow max flexibility
and simple do deep indexing with something à la Lucene? (Well, I can think of some reasons but for the general case… :wink: )

Regards,

Robert

···

On Thu, 2003-09-25 at 12:48, Mark Wilson wrote:

I have a port of Text::Balanced that I made for an experimental port of
Parse:RecDescent if you (or anyone else) are interested:

http://dev.faeriemud.org/~deveiant/RecDescentParser/lib/
DelimScanner.rb?dl=1

It’s implemented as a subclass of Minero Aoki’s excellent ‘strscan’
module.

···

On Sep 25, 2003, at 4:26 PM, Austin Ziegler wrote:

I am … fitfully working on Text::Balanced. It’s difficult because
it’s
very idiomatic Perl and depends on a feature (pos and \G) that there
are
ways to emulate in Ruby, but nothing that quite works the same way.


Michael Granger ged@FaerieMUD.org
Rubymage, Believer, Architect
The FaerieMUD Consortium http://www.FaerieMUD.org/