From a847197cf11af6a108efc795979d08af118cd4cb Mon Sep 17 00:00:00 2001 From: networkException Date: Wed, 5 Jan 2022 16:08:31 +0100 Subject: [PATCH] Hightlighter: Make CommentTokens italic --- src/html/highlighter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/highlighter.ts b/src/html/highlighter.ts index cb13edb..56fc93e 100644 --- a/src/html/highlighter.ts +++ b/src/html/highlighter.ts @@ -20,7 +20,7 @@ export class Highlighter { public spin(): void { for (const token of this.tokens) { if (token instanceof CommentToken) { - this.spans.push(Span.createFromRange(token, token.range, Color.Comment)); + this.spans.push(Span.createFromRange(token, token.range, Color.Comment, Font.Italic)); } if (token instanceof DOCTYPEToken) {