documentation generation - Sphinx: List of supported languages for highlighting? -


i'm using sphinx code documentation , use several languages within code, setup highlighting of code. sphinx briefly mentions few of languages supports (on page), , mentions uses pygments lexical analysis , highlighting. sifting through documentation both sphinx , pygments yielded me no clue on how highlight objective-c code.

pygments mention list of languages supports, here, doesn't tell me exact syntax must use within sphinx (.rst files) tell code block highlight specific language. example, highlight c++ code simple use before code block:

.. highlight:: c++

however after trying these cannot seem highlight objective-c code:

.. highlight:: objective-c .. highlight:: objective-c .. highlight:: obj-c .. highlight:: obj-c 

can supply me list of languages (as refer them within documentation)?

as far can tell, list in file pygments/lexers/_mapping.py, in (autogenerated) dictionary lexers. in copy, see line

'objectiveclexer': ('pygments.lexers.compiled', 'objective-c', ('objective-c', 'objectivec', 'obj-c', 'objc'), ('*.m',), ('text/x-objective-c',)), 

i think should mean of tags objective-c, objectivec, obj-c, or objc should work, long version of pygments up-to-date. work me.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -