Sha256: a9467f4e31aa6a83b74748724c6a989592b99fb22ab949d86656d8147b178385
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import get_formatter_by_name def rygmentize(code, lexer, formatter): lexer = get_lexer_by_name(lexer) formatter = get_formatter_by_name(formatter) return highlight(code, lexer, formatter)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rygments-0.2.0 | lib/rygments/rygments.py |
rygments-0.1.0 | lib/rygments/rygments.py |