Add HTML code blocks

This commit is contained in:
Zef Hemel
2023-08-15 07:56:11 +02:00
parent 01ad45f929
commit cf97d04b1b
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -61,6 +61,7 @@ import {
attachmentExtension,
pasteLinkExtension,
} from "./cm_plugins/editor_paste.ts";
import { htmlLanguage } from "https://esm.sh/v130/@codemirror/lang-html@6.4.3/X-ZS9AY29kZW1pcnJvci9hdXRvY29tcGxldGUsQGNvZGVtaXJyb3IvbGFuZy1jc3MsQGNvZGVtaXJyb3IvbGFuZ3VhZ2UsQGNvZGVtaXJyb3Ivc3RhdGUsQGxlemVyL2h0bWwsQGxlemVyL2xy/dist/index.js";
export function createEditorState(
editor: Client,
@@ -159,6 +160,10 @@ export function createEditorState(
name: "css",
support: new LanguageSupport(StreamLanguage.define(sqlLanguage)),
}),
LanguageDescription.of({
name: "html",
support: new LanguageSupport(htmlLanguage),
}),
LanguageDescription.of({
name: "python",
alias: ["py"],