Skip to content

highlightVars

Sid Vishnoi edited this page Mar 22, 2025 · 11 revisions

highlightVars

With long algorithms in a specification, it can be useful to allow readers to click on variables marked up with <var> (e.g., Let <var>elem</var> be ...). By setting the respecConfig.highlightVars configuration option, readers can now click on vars in an algorithm to see where they are used.

var respecConfig = {
  highlightVars: true,
};

It renders as:

ReSpec highlightVars demo

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally