1 2 3 4 5 6 7
#!/usr/bin/python import pygments.lexers for fullname, names, exts, _ in pygments.lexers.get_all_lexers(): for name in names: print(("%s|%s") % (name, fullname))