Permalink
Browse files

Merge pull request #3 from jclem/master

Updated README.md for Pygments.rb/Rygments instructions.
  • Loading branch information...
2 parents 86a132b + ac472ea commit 64bf50520cb1d563432832ae30d85bbd94cec5bd @wbzyl 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 64bf505

Please sign in to comment.