From 598961086cd8258375482866f75f33a063d82e3b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 11 Dec 2023 18:29:05 +0000 Subject: [PATCH] FIX: Correct and improve autohighlight_all_code setting description (#24828) We allow HTML in site setting descriptions, so `` was being rendered as HTML instead of text. This commit fixes that, and adds an additional sentence about how to control markdown-authored code blocks. --- config/locales/server.en.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 786a98c8178..60af15883b7 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -2285,7 +2285,7 @@ en: short_progress_text_threshold: "After the number of posts in a topic goes above this number, the progress bar will only show the current post number. If you change the progress bar's width, you may need to change this value." default_code_lang: "Default programming language syntax highlighting applied to markdown code blocks (auto, text, ruby, python etc.). This value must also be present in the `highlighted languages` site setting." warn_reviving_old_topic_age: "When someone starts replying to a topic where the last reply is older than this many days, a warning will be displayed. Disable by setting to 0." - autohighlight_all_code: "Apply syntax highlighting to HTML blocks, even if they didn't specify a language." + autohighlight_all_code: "Apply syntax highlighting to HTML-authored <code> blocks, even if they didn't specify a language. To configure markdown-authored code blocks, use the 'default code lang' setting." highlighted_languages: "Included syntax highlighting rules. (Warning: including too many languages may impact performance) see: https://highlightjs.org/static/demo for a demo" show_copy_button_on_codeblocks: "Add a button to codeblocks to copy the block contents to the user's clipboard."