Permalink
Browse files

Separated instructions for Pygments.rb and Rygments in README.md.

  • Loading branch information...
1 parent 5e5d2cc commit ac472ea768ca5baefce384e5e29879fdef395417 Jonathan Clem committed Dec 13, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 README.md
View
@@ -138,8 +138,16 @@ Unofficial Pygments API (uses web service, no dependencies):
Rygments (with the *rygments* gem):
- use Rack::Codehighlighter, :pygments, :element => "pre",
+ use Rack::Codehighlighter, :rygments, :element => "pre",
:pattern => /\A:::([-_+\w]+)\s*(\n|
)/, :logging => false
+
+Pygments (with the *pygments.rb* gem):
+
+ use Rack::Codehighlighter, :pygments, :element => "pre>code",
+ pattern => /\A:::([-_+\w]+)\s*(\n|
)/, :logging => false,
+ options => { :linenos => 'inline' }
+
+(the `options` hash can accept standard [Pygments configuration options](http://pygments.org/docs/formatters/)).
Syntax:

0 comments on commit ac472ea

Please sign in to comment.