Properties
defaultTokenTable :Object.<Tag>
#
These are custom tokens (a.k.a. tags) that aren't mapped to any of the standardized tags. Make sure these are also defined in customTags() above.
TODO: pass parent Tags in Tag.define() where appropriate for better theming.
Type:
These are custom tokens (a.k.a.
HTML tags that are only self-closing.
permittedHtmlTags :Object
#
All HTML/XML tags permitted in MediaWiki Core.
Extensions should use the CodeMirrorTagModes extension attribute to register tags instead of adding them here.
Type:
All HTML/XML tags permitted in MediaWiki Core.
Mapping of MediaWiki-esque token identifiers to standardized lezer highlighting tags.
Methods
getTagStyles(context) → {Array.<TagStyle>}
#
This defines the actual CSS class assigned to each tag/token. Keep this in sync and in the same order as tags().
Parameters:
| Name | Type | Description |
|---|---|---|
context |
StreamParser |
- Source:
- See:
Returns:
This defines the actual CSS class assigned to each tag/token.