[sage-devel] Re: Possible to avoid "sage:" in example code?

2010-03-03 Thread tommct
I was able to realize the desired result by modifying some lines in sphinx/highlighting.py: try: if self.dest == 'html': # Add '>>> ' and '... ' as appropriate if really want interactive mode. source_copy = '' line_count = 0 for line in s

[sage-devel] Re: Possible to avoid "sage:" in example code?

2010-03-01 Thread tommct
Thanks for the reply, John. This is exactly what I want, and what I am doing. The problem is for the code block to be a "cell" with an evaluate option at the end of it when viewing through the notebook server, I have to do this: --- """ stuff stuff :: sage: first line of code sage: secon

[sage-devel] Re: Possible to avoid "sage:" in example code?

2010-03-01 Thread John H Palmieri
On Mar 1, 8:22 am, tommct wrote: > I am using Sphinx to document my package. If I place the resulting > html in my SAGE notebook server, I get a nice, interactive reference, > but only when each line in my code examples are prefixed with "sage:" > or ">>>". I would like my chunks of example code t