From 4c68afe0f915c7da6d3a4caa11dea96d970af6b9 Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Sun, 5 Jan 2025 17:50:31 +0200 Subject: [PATCH] feat: add support for running perl --- source/_posts/perl.md | 5 ++++- themes/coo/layout/_partial/scripts.ejs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/_posts/perl.md b/source/_posts/perl.md index 8d74397..8484d92 100644 --- a/source/_posts/perl.md +++ b/source/_posts/perl.md @@ -9,6 +9,7 @@ intro: | The perl quick reference cheat sheet that aims at providing help on writing basic syntax and methods. plugins: - copyCode + - runCode --- ## Getting Started @@ -36,7 +37,9 @@ $make install - Download either 32bit or 64bit version of installation. -- Run the downloaded file by double-clicking it in Windows Explorer. This brings up the Perl install wizard, which is really easy to use. Just accept the default settings, wait until the installation is finished, and you're ready to roll! +- Run the downloaded file by double-clicking it in Windows Explorer. This brings up the Perl install wizard, which is + really easy to use. Just accept the default settings, wait until the installation is finished, and you're ready to + roll! ### Macintosh Installation diff --git a/themes/coo/layout/_partial/scripts.ejs b/themes/coo/layout/_partial/scripts.ejs index ab1cd88..e317e88 100644 --- a/themes/coo/layout/_partial/scripts.ejs +++ b/themes/coo/layout/_partial/scripts.ejs @@ -103,7 +103,7 @@ language = 'typescript'; } - const editorId = ['js', 'javascript', 'typescript', 'python', 'php', 'ruby'].includes(language) + const editorId = ['js', 'javascript', 'typescript', 'python', 'php', 'ruby', 'perl'].includes(language) ? 'script' : ['css', 'scss'].includes(language) ? 'style'