@asciidoctor/core
    Preparing search index...

    Class DefaultSyntaxHighlighterFactory

    Hierarchy

    • CustomFactory
      • DefaultSyntaxHighlighterFactory
    Index

    Constructors

    Properties

    _defaultRegistry: {}
    _registry: any

    Methods

    • Resolves a name to a syntax highlighter instance.

      Parameters

      • name: any

        the name of the syntax highlighter

      • Optionalbackend: string

        the backend name

      • Optionalopts: {}

        options passed to the constructor

      Returns any

      a highlighter instance, or null if not registered

    • Retrieves the syntax highlighter class or instance registered for the given name.

      Parameters

      • name: any

        the name to look up

      Returns any

      the registered class or instance, or null

    • Associates a syntax highlighter class or instance with one or more names.

      Parameters

      • syntaxHighlighter: any

        the class or instance to register

      • ...names: any[]

        one or more names to associate

      Returns void

    • Clears all custom (user) registrations; built-in adapters are preserved.

      Returns void