Skip to content

Commit fb39576

Browse files
committed
highlight the code
1 parent 4770c90 commit fb39576

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/modules/ROOT/pages/index.adoc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ asciidoc:
2929

3030
In an Antora adoc page, include a remote file
3131

32-
```adoc
32+
++++
33+
<pre><code class="language-cpp">
3334
[source,cpp]
3435
----
3536
include::https://raw.githubusercontent.com/feelpp/asciidoctor-remote-include-processor/master/test/helloworld.cpp[]
3637
----
37-
```
38+
</code>
39+
</pre>
40+
++++
3841

3942
which gives:
4043

@@ -48,12 +51,16 @@ include::https://raw.githubusercontent.com/feelpp/asciidoctor-remote-include-pro
4851
In Asciidoctor we can include a source file partially using tags, see https://asciidoctor.org/docs/user-manual/#by-tagged-regions[here].
4952
The extension enable this very feature.
5053

51-
```adoc
54+
++++
55+
<pre>
56+
<code class="language-cpp">
5257
[source,cpp]
5358
----
5459
include::https://raw.githubusercontent.com/feelpp/asciidoctor-remote-include-processor/master/test/helloworld.cpp[tag=hello]
5560
----
56-
```
61+
</code>
62+
</pre>
63+
++++
5764

5865
which gives:
5966

0 commit comments

Comments
 (0)