Text formatting

Document writer <olivier.nicolas@insa-lyon.fr>
vxxx, 2022-xx-xx

1. Text formatting

Format Code

Bold

*your text*

Partial Bold

Part**ial Bold**

Italic

_your text_

Underline

[.underline]#Your text#

Highlight

#Your text#

1.1. Coloring text

Make sure your color is defined in a css file in your ui, unless it’s one of
the basic colors (Expand section).

Example:

In ui/antora-ui-default/src/css/colors.css

.BrightGreen {
  color: green;
}

Then include the css in your project; add:

@import "colors.css";

to ui/antora-ui-default/src/css/site.css

1.1.1. Code

[BrightGreen]*My text in Bright Green*

1.1.2. Results

My text in Bright Green

2. Section Numbers

Sections aren’t numbered by default.
However, you can enable this feature by setting the attribute sectnums.

2.1. Code

= Title
:sectnums:

== Numbered Section

:sectnums!:

== Unnumbered Section

:sectnums:

== Numbered Section

2.2. Results

1. Numbered Section

Unnumbered Section

2. Numbered Section