Skip to content

Instantly share code, notes, and snippets.

@chezou
Created August 16, 2013 05:34
Show Gist options
  • Save chezou/6247546 to your computer and use it in GitHub Desktop.
Save chezou/6247546 to your computer and use it in GitHub Desktop.
pygmentsの使い方
```
$ pip install pygments
```
```
$ diff templates.py templates.py.old
57d56
< filenames = ['*.erb']
```
```
$ cd pygments/lexer
$ python _mapping.py
```
```
function lvc() { if [ -f $1 ]; then pygmentize -O encoding=utf-8 -O style=monokai "$1" |lv -c; fi; }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment