Incorporating code blocks can be tricky as they quickly become out-of-sync with the live code. This is mitigated by referencing real compiled code via the existing Asciidoctor range support
Example:
/**
* [source,java]
* --
* include::Example.java[tags=snippet]
*/
public class Example.java {
//tag::snippet[]
public void includeMe(){}
//tag::snippet[]
}
Incorporating code blocks can be tricky as they quickly become out-of-sync with the live code. This is mitigated by referencing real compiled code via the existing Asciidoctor range support
Example:
would results in teh following main javadoc:
Related to: https://github.com/asciidoctor/asciidoctor/issues/226