Robert Bradshaw wrote:
> On Oct 2, 2009, at 12:59 AM, Dag Sverre Seljebotn wrote:
>
>
>   
>   
>> I must say I'm really keen on having code snippets embedded into ReST
>> text (and rather automatically exported as files), rather than the  
>> other
>> way around.
>>     
>
>
> Me too. I like your example of using :hidden and constructing whole  
> files--I didn't know you could do that. Sounds perfect (for the  
> tutorials at least).
>   
Basically I think you are just fed everything (arguments + body) of a 
ReST tag, and are expected to supply a replacement ReST string. So you 
can do anything. Worst-case sceneario, two passes through the docs would 
be needed, one to create the whole file...I don't know, but that's not 
too horrible.

So I just invented something. Come to think of it, I'd like #SHOW, #HIDE 
and #SNIP instructions in Cython source instead so that the number of 
ReST tags can be reduced.

Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to