Skip to content
Snippets Groups Projects
Commit ae8baf54 authored by Claus Skou Nielsen's avatar Claus Skou Nielsen
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.
parent 3f2881aa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment