Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 237 Bytes
from pygments.lexers import get_all_lexers, get_lexer_by_name
lexers = sorted(get_all_lexers())
choices = ()
for i in enumerate(lexers):
print i[1][0], " : ", i[1][1][0]
# choices = choices + ((i[1][0], i[1][0]),)
# print(choices)