highlight.adoc 627 Bytes
Newer Older
1
2
3
4
5
= Highlight
//New page, content from text-css.adoc

== Highlight syntax

6
When text is enclosed in a pair of single or double hash symbols (`#`), and no style is assigned to it, the text will be rendered as highlighted text (text wrapped in `<mark>`).
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

.Highlighted style syntax
[source#ex-highlight]
----
include::example$text.adoc[tag=highlight]
----

When <<ex-highlight>> is converted, the following HTML is produced.

.Highlighted text HTML output
[source,html]
----
include::example$text.adoc[tag=highlight-html]
----

The result of <<ex-highlight>> is rendered below.

====
include::example$text.adoc[tag=highlight]
====