|
Hi,
reading the asciidoctor guideline's code, I found this interesting option to document your code using specific syntax to reference your line code:
[source,ruby]
----
require 'sinatra' // <1>
----
<1> Library import
But, how can we deal with the include statements? I want my included file to contain both the code and the documentation ! something like
// tag::example[]
require 'sinatra' // <1>
<1> Library import
// end::example[]
but the documentation line is is considered as code...
Any idea ?
|