blob: 0ef6fe97af0f8b5852c1a5b6a7dd5cbc0f0a2682 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/python
import pygments.lexers
import json
ret = []
for fullname, names, exts, mimetypes in pygments.lexers.get_all_lexers():
ret.append({
'fullname': fullname,
'names': names,
'extentions': exts,
'mimetypes': mimetypes,
})
print(json.dumps(ret))
|