From b90512fbe59662d51a9f9a22b7cb49b66d0e5afb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 10 Jun 2021 11:13:38 +0200 Subject: [PATCH] Use Sass highlighter for CodeMirror Sass inputs --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 4 ++-- wcfsetup/install/files/acp/templates/styleGlobalValues.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 3c08c8ccba..4e04f87ce5 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -1060,7 +1060,7 @@ - {include file='codemirror' codemirrorMode='text/x-less' codemirrorSelector='#individualScssCustom, #overrideScssCustom'} + {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#individualScssCustom, #overrideScssCustom'} {event name='syntaxFieldsetsCustom'} @@ -1109,7 +1109,7 @@ - {include file='codemirror' codemirrorMode='text/x-less' codemirrorSelector='#individualScss, #overrideScss' editable=$isTainted} + {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#individualScss, #overrideScss' editable=$isTainted} {event name='syntaxFieldsetsOriginal'} diff --git a/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl b/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl index 0f0c6976d8..a436ef179c 100644 --- a/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl +++ b/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl @@ -41,7 +41,7 @@ {/if} - {include file='codemirror' codemirrorMode='text/x-less' codemirrorSelector='#styles'} + {include file='codemirror' codemirrorMode='scss' codemirrorSelector='#styles'} {event name='sections'} -- 2.20.1