The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Ruby BBCode Tag?

One feature that makes these forums easy to use is the syntax highlighting capabilities of the [ php ] bbcode tag. I think it might help this forum to have a [ ruby ] bbcode tag to syntax highlight ruby code.

No I have never looked at vbulletin, but I hope there are others out there who are familiar with it. In my mind, I can see several steps:

a) vbulletin is a PHP app, so the highlighting code needs to run under PHP. Is anyone aware of a Ruby syntax highlighter coded in PHP?

b) vbulletin needs to become aware of this code, and to apply it for a [ ruby ] bbcode tag. I would hope this is some kind of a plugin, but I need to defer to people who have actually used vbulletin to answer

c) sitepoint needs to agree to implement such a solution (or does some such solution exist in the wild already?)

d) someone needs to code the plugin/patch and have it applied to sitepoint

Is this a reasonable goal? Is what I layed out the correct plan of action? Can anyone answer any of the points listed above?

Lastly, if we get resonable answers for a, b and c, does anyone want to volunteer to throw it together?

I actually tried to get a CSS highlighting thing going for this forum but didn't get too far with it thanks to a lack of time. All you really have to do is know your regex well and be able to write a decent vB plugin. Instructions for that can be found here.

edit: maybe you can take a look at GeSHi and see if what they have can translate over to vBulletin.

a) vbulletin is a PHP app, so the highlighting code needs to run under PHP. Is anyone aware of a Ruby syntax highlighter coded in PHP?

I made a Ruby language file for my syntax hiliting plugin for WordPress(see my sig) which I contributed to GeSHi project so that it comes bundled with it now!! That lang file is not extensive but still its more than a good starting point!!

I haven't looked at vB code so don't know how hard it'll be to implement this but don't think that it'll be tough!!

With vB 3.5 its very easy to use the plugin APIs to create something like this. The hardest part wouldnt be getting it to work with vB, itd just be making the parser to figure out what gets highlighted.