On 2011-10-27, Tim Arnold wrote: > [-- Type: text/plain, Encoding: --]
> Hi, I'm learning sphinx now--great stuff! > I'm using the code-block highlighting a lot--flipping between 'html', > 'latex', and 'python' languages. For example, > .. code-block:: latex > Is there any directive for highlighting *inline *code? For now I'm just > using markup like > ``\section{my section title}`` when writing a bit of code for LaTeX users > for example. > I'm guessing it's not possible, given my search results so far. There is now a :code:`role` in the reStructuredText reference implementation Docutils (http://docutils/sf.net): Changes Since 0.8.1 =================== * General: - reStructuredText "code" role and directive with syntax highlighting by Pygments_. - "code" option of the "include" directive. As Sphinx builds on the Docutils, upgrading Docutils to the development version might help: However, handling of syntax highlight in Sphinx and Docutils differs, so your mileage might vary. Read the Docutils documentation (the one that comes with the SVN repo or daily snapshot) in any case. -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.