Guides

HighlightNodeTransformer
in package
implements NodeTransformer

FinalYes

Applies the default highlight language, as set by the project settings or the reStructuredText `.. highlight::` directive, to every node implementing {@see ConsumesDefaultHighlightLanguage} that does not already have an explicit language.

The HighlightNode produced by the highlight directive is a marker only, it is removed from the document tree by this transformer.

Table of Contents

Interfaces

NodeTransformer

Properties

$currentDocument  : DocumentNode|null
$currentLanguage  : string|null
$settingsManager  : SettingsManager

Methods

__construct()  : mixed
enterNode()  : T
getPriority()  : int
The higher the priority the earlier the NodeTransformer is executed.
leaveNode()  : T|null
supports()  : bool
resetStateForNewDocument()  : void

Properties

Methods

getPriority()

The higher the priority the earlier the NodeTransformer is executed.

public getPriority() : int
Return values
int
On this page

Search results