Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Hey, wanted to add how to use the pygments styles, since I was using some time myself finding out. Thanks.
  • Loading branch information
kayloos committed Feb 28, 2013
1 parent 3f2881a commit ae8baf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -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.
Expand Down

0 comments on commit ae8baf5

Please sign in to comment.