From f71b5dc6f42856f799cb4cb61e2a8758ddb12ca1 Mon Sep 17 00:00:00 2001 From: Brian Thomas Smith Date: Thu, 8 Aug 2024 11:56:13 +0200 Subject: [PATCH] feat: enable Go language syntax highlighting, set pre,code tab-size to 4 --- build/syntax-highlight.ts | 1 + client/src/document/index.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/build/syntax-highlight.ts b/build/syntax-highlight.ts index b87f4e32c056..d27a6902a60c 100644 --- a/build/syntax-highlight.ts +++ b/build/syntax-highlight.ts @@ -32,6 +32,7 @@ const loadAllLanguages = lazy(() => { "diff", "django", "glsl", + "go", "handlebars", "http", "ignore", diff --git a/client/src/document/index.scss b/client/src/document/index.scss index bed9a58bb05e..608a7a00d3e0 100644 --- a/client/src/document/index.scss +++ b/client/src/document/index.scss @@ -450,6 +450,7 @@ code, border-radius: var(--elem-radius); font-family: var(--font-code); font-size: var(--type-smaller-font-size); + tab-size: 4; } code {