Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 12 revisions

.nohighlight

Disables syntax highlighting for a specific <pre> code block. By default, ReSpec syntax-highlights all <pre> elements.

Usage

<pre class="nohighlight">
This is plain text or pseudocode.
It will not be syntax-highlighted.
</pre>

Notes

  • Without .nohighlight, ReSpec uses highlight.js to auto-detect and highlight the language
  • Use .nohighlight for pseudocode, ABNF grammars, or other content where syntax highlighting would be distracting
  • To specify a language explicitly instead: <pre class="js"> for JavaScript, <pre class="css"> for CSS, etc.

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally