From: Josh Cheek Date: 2010-10-15T17:47:35+09:00 Subject: Re: How do I highlight Ruby code on a GitHub wiki? --001485f7c356caebb40492a3d623 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Oct 15, 2010 at 1:46 AM, Albert Schlef wrote: > Albert Schlef wrote in post #950351: > > Albert Schlef wrote in post #950349: > >> > >> So, does anybody know how to highlight Ruby code on GitHub? > > > > Hurrey!!! I've found the answer!!! > > Well, it seems I still have a problem: > > I actually want to highlight code I put in a "README.markdown" file. I > don't care about the wiki. Anybody knows if it's possible to highlight > in README.markdown? > > -- > Posted via http://www.ruby-forum.com/. > > I don't think you can, it looks like they are handled completely differently. Code in readmes looks like it is a tag inside a
tag. Code with language specific highlights such as what they show on a file
in your project, looks like it is parsed and marked up for the css to
highlight, with tags around each highlight "type"

Anyway, it looks like this is the gem they use to process readmes
http://github.com/github/markup
You could look at the the gems it, farms out to, see if any of them offer
better support, possibly change your readme format to accommodate that (if
you find out, post how you did it).

--001485f7c356caebb40492a3d623--