PL-8032 Add highlighting for scss mode in source code editor

This commit is contained in:
Gleb Gorelov 2016-10-25 18:01:46 +04:00
parent 0a013dfd52
commit c60efded09
5 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -32,6 +32,8 @@ public interface SourceCodeEditor extends Field {
SQL,
JavaScript,
Properties,
CSS,
SCSS,
Text;
public static Mode parse(String name) {

View File

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long