On 2011-10-29, Andrea Crotti wrote:
> On 10/28/2011 10:28 PM, Guenter Milde wrote:
>> What do you expect and what do you get?


> I would think to get the code highlighted, instead is just not 
> recognized as code,

I am not sure "parsed-literal" content should be highlit as code. (But, of
course a consistent behaviour is to be expected - i.e. either always or
never highlight parsed-literal as code.)

> and that also if I use highlight or code-block...

The "highlight" directive is *not* intended to highlight content, instead:


  The highlighting language can be changed using the highlight directive,
  used as follows::

    .. highlight:: c

  This language is used until the next highlight directive is encountered.

  -- http://sphinx.pocoo.org/markup/code.html
  

Highlighting is expected only with a standard (non-parsed) literal block
or a code-block directive::

   # this should be considered Python code (in Sphinx) unless the 
   # "highlight language" is changed.
   
.. code-block:: C

   /* this directive content should be C code */


> I filled a bug for it:
> https://bitbucket.org/birkenfeld/sphinx/issue/806/highlight-parsed-literal-not-working-for

I leave this to the Sphinx developers...

Günter

-- 
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.

Reply via email to