By popular demand, we implemented both lines and tags attributes on the include directive in Asciidoctor. This feature could easily be added to AsciiDoc Python if someone is willing to contribute it.
Another way to accomplish this goal is to implement a custom block macro, which can be done without changing AsciiDoc Python. Obviously, you'd have to use a different name, such as includefile::target[lines="1..5"]. -Dan On Mar 12, 2014 1:48 PM, "Matthew Young" <[email protected]> wrote: > Using asciidoc 8.6.9 with python 2.7.6 on Windows (7) > > Installed with pip the pygmentize highlighter and using it as the default. > Got the following: > > [source,java] > ---- > > include::{sourcedir}/se/bolagsverket/drl/config/BootStrap.java[lines=15..18] > ---- > > > But the lines filter isn't honoured. The entire source is pulled in. Is > another plugin needed for lines to work? > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
