class

Asciidoctor::SyntaxHighlighter::CustomFactory

Inherits Reference < Object

A custom factory that stores syntax highlighters in a local registry.

Constructors

new(seed_registry = nil)
Source

Instance methods

create(name : String, backend : String = "html5") : SyntaxHighlighterBase | Nil

Resolve the name to a syntax highlighter instance, if found in the registry.

Source
for(name : String) : SyntaxHighlighterBase.class | Nil

Retrieve the syntax highlighter class registered for the specified name.

Source
register(syntax_highlighter : SyntaxHighlighterBase.class, *names : String) : Nil

Register a syntax highlighter for one or more names.

Source