From 989918efe6dc85d620e400e1b40202b7d98039f3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 2 Feb 2025 18:01:42 +0200 Subject: [PATCH] feat(in-app-help): show syntax highlighting --- src/public/app/widgets/type_widgets/doc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts index 8008276ad..a3e6a7c2b 100644 --- a/src/public/app/widgets/type_widgets/doc.ts +++ b/src/public/app/widgets/type_widgets/doc.ts @@ -1,4 +1,5 @@ import type FNote from "../../entities/fnote.js"; +import { applySyntaxHighlight } from "../../services/syntax_highlight.js"; import TypeWidget from "./type_widget.js"; const TPL = `
@@ -66,6 +67,8 @@ export default class DocTypeWidget extends TypeWidget { const $img = $(el); $img.attr("src", dir + "/" + $img.attr("src")); }); + + applySyntaxHighlight(this.$content); } }