Get the preview extension
Add this to user or workspace settings to allow importing of content via URI
"asciidoc.html_generator": "asciidoctor -a allow-uri-read -o-"
To output html5 instead of xhtml, add -b html5
Use links to raw content.
e.g. include::https://raw.githubusercontent.com/couchbaselabs/xdcr-java-sample/master/src/main/java/com/couchbase/server/xdcr/ClusterBasics.java[]
This works with images, too.
Keep a file of commonly used links and shorthand codes. For example AsciiDoc automatically replaces {CBS} with the link {CBS}. Or, don’t supply default text and add it on use, e.g. {XDCR-}[XDCR is cool].
See links.adoc
With tags, you can automate including code segments from complete source. See http://asciidoctor.org/docs/user-manual/#include-partial
Number code lines for reference. This doesn’t currently translate well to WordPress. See http://asciidoctor.org/docs/user-manual/#callouts