Skip to content

Instantly share code, notes, and snippets.

@nikhilm
Created February 22, 2010 06:53
Show Gist options
  • Save nikhilm/310877 to your computer and use it in GitHub Desktop.
Save nikhilm/310877 to your computer and use it in GitHub Desktop.
# The language list was generated using the following lines of Python
from pygments.lexers import get_all_lexers
import json
xs = [ (x[0], i) for i, x, _, _ in get_all_lexers() ]
xs.sort()
f = open('file', 'w')
json.dump(xs, f)
# and pasting the file into snip.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment