On 3 September 2011 04:45, Jason Morrison <[email protected]> wrote:
> Hello,
>
> I'm using asciidoc to write an ebook on a programming topic, and often
> include source code excerpts.  I'd like to maintain a working example
> application in the repo, and include source code excerpts from the
> actual example app into the book.
>
> But!  It'd be clumsy to include full source files every time.  I'd
> like to say something like:
>
> [javascript,src_start=8,src_end=24]
> source~~~~
> include::task_detail_view.js[]
> source~~~~
>
> I've read the documentation on filters and looked at a few example
> filters' source to try to understand how they work.  I then tried to
> implement this by passing the src_start,src_end attributes through to
> either GNU source-highlight or sed (source-highlight is only used for
> non-docbook backends; docbook does its own highlighting).  My attempt
> source code is here:
>
> https://gist.github.com/1189434
>
> but it doesn't filter the source code.
>
> Can someone help point me in the right direction?  Thanks!
> -Jason
>
What version of asciidoc?  What platform?

Does the --verbose option show the right command is being run.

Does that command work on the command line?

Cheers
Lex

> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" 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/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" 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/asciidoc?hl=en.

Reply via email to