Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at 9a6ba7fadf312bda2dc714899aa76bcb8f00d5aa 15 lines 588 B view raw
1import {styleTags, tags as t} from "@lezer/highlight" 2 3export const htmlHighlighting = styleTags({ 4 "Text RawText IncompleteTag IncompleteCloseTag": t.content, 5 "StartTag StartCloseTag SelfClosingEndTag EndTag": t.angleBracket, 6 TagName: t.tagName, 7 "MismatchedCloseTag/TagName": [t.tagName, t.invalid], 8 AttributeName: t.attributeName, 9 "AttributeValue UnquotedAttributeValue": t.attributeValue, 10 Is: t.definitionOperator, 11 "EntityReference CharacterReference": t.character, 12 Comment: t.blockComment, 13 ProcessingInst: t.processingInstruction, 14 DoctypeDecl: t.documentMeta 15})