Sphinx: List of supported languages for highlighting?
pygmentize -L lexers
lists all supported lexers.
- http://pygments.org/languages/
- http://pygments.org/docs/lexers/
- http://pygments.org/docs/cmdline/#getting-help
As far as I can tell, the list is in the file pygments/lexers/_mapping.py
, in the (autogenerated) dictionary LEXERS
. In my copy, I see a line
'ObjectiveCLexer': ('pygments.lexers.compiled', 'Objective-C', ('objective-c', 'objectivec', 'obj-c', 'objc'), ('*.m',), ('text/x-objective-c',)),
I think this should mean that any of the tags objective-c
, objectivec
, obj-c
, or objc
should work, as long as your version of Pygments is up-to-date. They work for me.