Inline code highlighting in reStructuredText
问题 I know reStructuredText has this directive: .. code:: bash gedit pohl.m which renders a code block. Is there some way to get syntax highlighting for inline snippets like this: Do edit the file, type ``gedit pohl.m`` into a terminal. The backticks mark it as code, but I'd like to highlight it with pygments like the block. Is this possible? 回答1: Having looked into this some more I stumbled upon the document reStructuredText Interpreted Text Roles. From this document: Interpreted text uses