Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol
diffdown.com
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})