From 780a6bf6ab296eb1b0bd75289e2e419d972c3746 Mon Sep 17 00:00:00 2001 From: bpavuk <75901693+bpavuk@users.noreply.github.com> Date: Sun, 17 Aug 2025 18:37:00 +0300 Subject: [PATCH] added Kotlin support --- src/lib/highlight.ts | 4 ++-- src/views/index.pug | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/highlight.ts b/src/lib/highlight.ts index 4aa7d90..c516d53 100644 --- a/src/lib/highlight.ts +++ b/src/lib/highlight.ts @@ -9,7 +9,7 @@ export async function getHighlighterInstance() { themes: ['catppuccin-latte', 'catppuccin-mocha'], langs: [ 'javascript', 'typescript', 'python', 'java', 'rust', - 'go', 'c', 'cpp', 'csharp', 'php', 'ruby', 'cobol', + 'go', 'c', 'cpp', 'csharp', 'php', 'ruby', 'cobol', 'kotlin', 'plaintext', 'txt', 'bash', 'nix' ] }) @@ -45,4 +45,4 @@ export async function highlightCode(code: string, lang: string) { } }) } -} \ No newline at end of file +} diff --git a/src/views/index.pug b/src/views/index.pug index 17ddcbc..9f69f2a 100644 --- a/src/views/index.pug +++ b/src/views/index.pug @@ -23,6 +23,7 @@ include ../mixins/post "c++", "cobol", "nix", + "kotlin" ].toSorted()) doctype html html -- 2.43.0