Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Pygments.rb and Rygments #2

Merged
merged 1 commit into from
Dec 12, 2011
Merged

Separate Pygments.rb and Rygments #2

merged 1 commit into from
Dec 12, 2011

Conversation

jclem
Copy link
Contributor

@jclem jclem commented Dec 12, 2011

I've separated Pygments.rb and Rygments—mostly for the fact that as far as I can tell, Rygments does not allow taking advantage of Pygments' full set of options (i.e. line numbers). I've added the ability to specify an options hash when using Pygments.rb that gets passed directly to Pygments, for example:

use Rack::Codehighlighter, :pygments, :markdown => true, :element => "pre>code", :pattern => /\A:::(\w+)\s*(\n|
)/i, :logging => true, :options => { :linenos => 'table' }

wbzyl pushed a commit that referenced this pull request Dec 12, 2011
Separate Pygments.rb and Rygments
@wbzyl wbzyl merged commit 86a132b into wbzyl:master Dec 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants