All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.highlight.js Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
import {styleTags, tags as t} from "@lezer/highlight"

export const xmlHighlighting = styleTags({
  Text: t.content,
  "StartTag StartCloseTag EndTag SelfCloseEndTag": t.angleBracket,
  TagName: t.tagName,
  "MismatchedCloseTag/Tagname": [t.tagName, t.invalid],
  AttributeName: t.attributeName,
  AttributeValue: t.attributeValue,
  Is: t.definitionOperator,
  "EntityReference CharacterReference": t.character,
  Comment: t.blockComment,
  ProcessingInst: t.processingInstruction,
  DoctypeDecl: t.documentMeta,
  Cdata: t.special(t.string)
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy