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) {