Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

Hey, wanted to add how to use the pygments styles, since I was using some time myself finding out. Thanks.
  • Loading branch information...
commit ae8baf54827324d029739d7920850ca14283e6df 1 parent 3f2881a
@kayloos kayloos authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
6 README.md
@@ -50,6 +50,12 @@ Pygments.css
Pygments.css('.highlight')
```
+To use a specific pygments style, pass the :style option to the `#css` method:
+
+``` ruby
+Pygments.css(:style => "monokai")
+```
+
Other Pygments high-level API methods are also available.
These methods return arrays detailing all the available lexers, formatters,
and styles.
Please sign in to comment.
Something went wrong with that request. Please try again.