I'm fighting a little bit in trying to understand parsed-literal.
This block of code for example is recognised and colored perfectly:
.. parsed-literal::
import warnings
class SomeClass(object):
def run_script(self, script, context):
warnings.warn(("'run_script' will be replaced in next
version"),
DeprecationWarning)
print 'doing something'
return self.run(script, context)
def run(self, script, context=None):
pass
while this isn't
.. parsed-literal::
try:
prog = open(filename, "rU").read()
prog = prog.strip() + '\n'
except IOError, err:
I thought it was just an highlighting problem, but it's just not seen
as a parsed-literal.
What can I be missing?
They have both one newline at beginning and end, what can be the problem?
--
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.