listing.adoc 1.09 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// tag::indent[]
 $ cd secure/vault/defops
// end::indent[]

// tag::style[]
[listing]
This is an example of a paragraph assigned
the `listing` style in an attribute list.
Notice that the monospace marks are
preserved in the output.
// end::style[]

// tag::block[]
----
This is a _delimited listing block_.

The content inside is displayed as <pre> text.
----
// end::block[]

21
22
// in qr
// tag::qr-listing[]
23
24
25
26
27
.Gemfile.lock
----
GEM
  remote: https://rubygems.org/
  specs:
28
    asciidoctor (2.0.12)
29
30
31
32
33

PLATFORMS
  ruby

DEPENDENCIES
34
  asciidoctor (~> 2.0.12)
35
----
36
// end::qr-listing[]
37

38
// in qr
39
// tag::subs[]
40
:release-version: pass:a[{release-version}]
41

42
[source,xml,subs=attributes+]
43
44
45
46
----
<dependency>
  <groupId>org.asciidoctor</groupId>
  <artifactId>asciidoctor-java-integration</artifactId>
47
  <version>{release-version}</version>
48
49
50
51
</dependency>
----
// end::subs[]

52
// in qr
53
// tag::subs-out[]
54
[source,xml,subs=attributes+]
55
56
57
58
----
<dependency>
  <groupId>org.asciidoctor</groupId>
  <artifactId>asciidoctor-java-integration</artifactId>
59
  <version>{release-version}</version>
60
61
62
</dependency>
----
// end::subs-out[]