Package-level declarations

Types

Link copied to clipboard
data class HtmlCompletionConfig(val extraTags: Map<String, TagSpec>? = null, val extraGlobalAttributes: Map<String, List<String>?>? = null)

Configuration for htmlCompletionSourceWith.

Link copied to clipboard
class HtmlSchema(extraTags: Map<String, TagSpec>? = null, extraAttrs: Map<String, List<String>?>? = null)

An HTML completion schema that knows about valid tags, their attributes, and attribute values. Can be extended with extra tags and attributes via HtmlCompletionConfig.

Link copied to clipboard
data class TagSpec(val attrs: Map<String, List<String>?>? = null, val globalAttrs: Boolean = true, val children: List<String>? = null)

Specification for a single HTML tag's attributes. Attribute values of null mean free-form text; a list of strings provides predefined value completions.

Properties

Link copied to clipboard

Extension that automatically inserts close tags when > or / is typed in an HTML document.

Link copied to clipboard

HTML tag completion source. Opens and closes tags and attributes in a context-aware way.

Link copied to clipboard

A language provider based on the Lezer HTML parser, extended with highlighting and indentation information.

Functions

Link copied to clipboard
fun html(config: HtmlCompletionConfig = HtmlCompletionConfig(), selfClosingTags: Boolean = true): LanguageSupport

HTML language support with autocompletion and auto-closing tags.

Link copied to clipboard
fun htmlCompletionSourceWith(config: HtmlCompletionConfig = HtmlCompletionConfig()): CompletionSource

Create a completion source for HTML extended with additional tags or attributes.