On Friday, 25 May 2012 13:49:44 UTC-4, Ramon wrote:
>
> Hi Viktor --
>
> Thank you for the detailed write up -- this sounds very close to what we 
> are looking for. I take it you were able to extend the existing JSON 
> support for this, so we'd need to presumeably implement a YAML parser to 
> take a similar approach. Do you happen to know if anyone is working on 
> something like this?
>

According to the pygments website, the latest distribution supports YAML 
(http://pygments.org/languages/) and has since Pygments 0.11. Accordingly, 
you could use 

.. code-block:: yaml


to introduce YAML blocks. The lexer for YAML is in the "text.py" 
source-file of lexers in the Pygments distribution. A quick glance at it 
seems to indicate that it contains support for noticing in-line comments 
and rendering them as such. You might not need to hack the lexer at all to 
get the look that you want.

--
Viktor

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/OLwBKZ60nOIJ.
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