I was interested in displaying code snippets from full
source files. I was glad to see that inclusion of
selected range of lines was on the todo list. Here is
a patch that adds this functionality.
Diff for parsers.rst.directives.misc.py
Diff for io.py (needed readline and readlines exposed)
Added ``start-line`` and ``end-line`` options to ``include``
directive to select a range of lines.
Log in to post a comment.