Iain Duncan schrieb: > Hi folks, I've been following the sphinx doc examples and I got sections > of my source code into my rst files nicely using: > > .. literalinclude:: ../../controllers.py > :pyobject: Root.register > > But when it gets included, all syntax highlighting is gone. Is there a > way to use pyobject and still get it? And line numbers?
I think I know what the problem is: when the source is parsed to determine if it is Python, there is "extraneous" indentation which Python doesn't want to compile. I'll add a stab at a dedenting pass for the next releases. Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
