Highlight

On this page, you’ll learn:

  • How to highlight text with AsciiDoc.

  • Where to modify your site’s highlighting styles.

Highlight syntax

To highlight (or mark) a word or phrase, place a hash () at the beginning and end of the text you wish to format (constrained formatting). To highlight one or more characters bounded by other characters, place two hashes (#) before and after the characters (unconstrained formatting).

Example 1. Highlight inline formatting
Let's #highlight this phrase# and the i and s in th##is##.
Result

Let’s highlight this phrase and the i and the s in this.

Site styles

How highlighted text appears on your site depends on the CSS styles applied to the <mark> HTML tag. You can learn more about customizing how highlighted text appears in your site in the UI documentation.

Asciidoctor resources