mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
PL-8032 Add highlighting for scss mode in source code editor
This commit is contained in:
parent
0a013dfd52
commit
c60efded09
@ -119,6 +119,14 @@ public class DesktopSourceCodeEditor extends DesktopAbstractTextField<RSyntaxTex
|
||||
impl.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_XML);
|
||||
break;
|
||||
|
||||
case CSS:
|
||||
impl.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_CSS);
|
||||
break;
|
||||
|
||||
case SCSS:
|
||||
impl.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_CSS);
|
||||
break;
|
||||
|
||||
case Text:
|
||||
impl.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_NONE);
|
||||
break;
|
||||
|
@ -32,6 +32,8 @@ public interface SourceCodeEditor extends Field {
|
||||
SQL,
|
||||
JavaScript,
|
||||
Properties,
|
||||
CSS,
|
||||
SCSS,
|
||||
Text;
|
||||
|
||||
public static Mode parse(String name) {
|
||||
|
@ -90,6 +90,14 @@ public class WebSourceCodeEditor extends WebAbstractField<CubaSourceCodeEditor>
|
||||
editorMode = AceMode.properties;
|
||||
break;
|
||||
|
||||
case CSS:
|
||||
editorMode = AceMode.css;
|
||||
break;
|
||||
|
||||
case SCSS:
|
||||
editorMode = AceMode.scss;
|
||||
break;
|
||||
|
||||
default:
|
||||
editorMode = AceMode.text;
|
||||
break;
|
||||
|
1
modules/web/web/VAADIN/resources/ace/mode-css.js
Normal file
1
modules/web/web/VAADIN/resources/ace/mode-css.js
Normal file
File diff suppressed because one or more lines are too long
1
modules/web/web/VAADIN/resources/ace/mode-scss.js
Normal file
1
modules/web/web/VAADIN/resources/ace/mode-scss.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user