Expand all

CodeMirrorMediaWiki

MediaWiki language support for CodeMirror 6. Adapted from the original CodeMirror 5 stream parser by Pavel Astakhov. Exposed through the ext.CodeMirror.v6.mode.mediawiki module.

Extends

Properties

extension #

The complete set of extensions for this mode, including the language and any supporting extensions.

Overrides:
Source:

The complete set of extensions for this mode, including the language and any supporting extensions.

hasWorker #

Whether the mode should load a web worker.

Overrides:
Source:
Whether the mode should load a web worker.

language :Language #

The language object.

Type:

Overrides:
Source:
The language object.

lintApi :LintSource|undefined #

The function to lint the code in the editor using a MediaWiki API.

Type:

Overrides:
Source:
The function to lint the code in the editor using a MediaWiki API.

lintSource :LintSource|undefined #

The function to lint the code in the editor.

Type:

Overrides:
Source:
The function to lint the code in the editor.

name :string #

The name of the mode.

Type:

  • string
Overrides:
Source:
The name of the mode.

support :Extension #

Supporting extensions.

Type:

Overrides:
Source:
Supporting extensions.

worker :CodeMirrorWorker|undefined #

The web worker for the mode, if any.

Type:

Overrides:
Source:
The web worker for the mode, if any.