Hi, On Feb 14, 7:46 am, "Mike.lifeguard" <[email protected]> wrote: > How can I get a machine-readable list of language/lexer names > pygmentize will understand? pygmentize -L lexer has quite strange > output, and pygmentize -L lexers | grep '* [^ ]' | sed -r 's/\* (.*):$/ > \1/' or similar isn't much better. With a Python script:
from pygments.lexers import list_all_lexers # or something similar, check the docs. Iterate over the return value and format them as you like. Regards, Armin -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en.
