[Radiant] Re: best code syntax highlighting solution
I can't quite figure out how to use the coderay gem. Could you provide some guidance around how to do it? I see that there are filters available to me via extensions that allow me to leverage different text markups - I'm guessing I'd have to use the coderay gem in a different manner? Or should it be exposed as a filter like the others? Thanks for the help.
[Radiant] Re: best code syntax highlighting solution
Ok, so I'm sure you can tell by this last post of mine that I'm a complete noob. Looks like it's kramdown that I would use for the markdown and then coderay for syntax highlighting. Fine. Figured out that part. So now the question is how do I use kramdown + coderay w/ radiant? :P Thanks again. On Dec 12, 2:51 pm, craayzie wrote: > I can't quite figure out how to use the coderay gem. Could you provide > some guidance around how to do it? I see that there are filters > available to me via extensions that allow me to leverage different > text markups - I'm guessing I'd have to use the coderay gem in a > different manner? Or should it be exposed as a filter like the others? > > Thanks for the help.
Re: [Radiant] Re: best code syntax highlighting solution
don't mind me - I'm just going to update this thread as I figure more things out .. looks like there's a kramdown radiant filter :) http://ext.radiantcms.org/extensions/192-kramdown-filter now just need to figure out how to leverage the coderay gem :P
Re: [Radiant] Re: best code syntax highlighting solution
So looks like there are two radiant extensions below that allow you to leverage the coderay gem: https://github.com/phallstrom/code_ray https://github.com/alno/radiant-code-extension I'm inclined to use the the 2nd one since it supports other syntax highlighters beyond coderay. What are your thoughts on which one to use? Also, I'm curious, why use kramdown over the existing Markdown radiant filter? Speed or other reasons as well? Thanks!
Re: [Radiant] Re: best code syntax highlighting solution
gem install radiant-kramdown_filter-extension gem install coderay then in config/environment.rb ... require 'radius' require 'coderay' # add this line ... config.gem 'will_paginate', :version => '~> 2.3.11' config.gem 'radiant-kramdown_filter-extension' # add this line ... then restart radiant and you should be all set. On Sun, Dec 12, 2010 at 5:23 PM, Fima Leshinsky wrote: > So looks like there are two radiant extensions below that allow you to > leverage the coderay gem: > https://github.com/phallstrom/code_ray > https://github.com/alno/radiant-code-extension > I'm inclined to use the the 2nd one since it supports other syntax > highlighters beyond coderay. What are your thoughts on which one to use? > > Also, I'm curious, why use kramdown over the existing Markdown radiant > filter? Speed or other reasons as well? > Thanks!
[Radiant] Re: Re: best code syntax highlighting solution
John Doe wrote in post #967984: > So looks like there are two radiant extensions below that allow you to > leverage the coderay gem: > https://github.com/phallstrom/code_ray > https://github.com/alno/radiant-code-extension > > I'm inclined to use the the 2nd one since it supports other syntax > highlighters beyond coderay. What are your thoughts on which one to use? I tried to use alno/radiant-code-extension for the same reason but had to switch over to phallstrom/code_ray because I couldn't overcome an processor error and I decided that coderay was an acceptably easy library to implement and use. Ultimately, I forked it so I could merge envygeek's fork and pallstrom's. Kevin -- Posted via http://www.ruby-forum.com/.
[Radiant] How to down migrate an extension?
Hi all, New to Radiant and lovin' it so far. But I've been trying to find out how to down-migrate an extension migration so I can remove the extension. Specifically, I'm trying to migrate a project from sns to sheets, so I'm needing to undo the db from sns. Thank for any help -- Kevin -- Posted via http://www.ruby-forum.com/.