Package com.intellij.openapi.editor.ex.util

Examples of com.intellij.openapi.editor.ex.util.LayerDescriptor


          if(language != null) type = language.getAssociatedFileType();
            if(type == null) type = StdFileTypes.HTML;
        }
        SyntaxHighlighter outerHighlighter = SyntaxHighlighter.PROVIDER.create(type, project, virtualFile);

        registerLayer(LatteTokenTypes.HTML_TEXT, new LayerDescriptor(outerHighlighter, ""));
    }
View Full Code Here


      if (type == null) type = HbLanguage.getDefaultTemplateLang();
    }
    @SuppressWarnings("deprecation") // deprecated in IDEA 12, still needed in IDEA 11 TODO remove when IDEA 11 support is dropped
      SyntaxHighlighter outerHighlighter = SyntaxHighlighter.PROVIDER.create(type, project, virtualFile);

    registerLayer(HbTokenTypes.CONTENT, new LayerDescriptor(outerHighlighter, ""));
  }
View Full Code Here

public class CfmlHighlighter extends LayeredLexerEditorHighlighter {
  public CfmlHighlighter(@Nullable final Project project,
                         @Nullable final VirtualFile virtualFile,
                         @NotNull final EditorColorsScheme colors) {
    super(new CfmlFileHighlighter(project), colors);
    registerLayer(CfmlElementTypes.TEMPLATE_TEXT, new LayerDescriptor(
      SyntaxHighlighterFactory.getSyntaxHighlighter(StdFileTypes.HTML, project, virtualFile), ""));
    registerLayer(CfmlElementTypes.SQL,
                  new LayerDescriptor(SyntaxHighlighterFactory.getSyntaxHighlighter(SqlFileType.INSTANCE, project, virtualFile), ""));
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.editor.ex.util.LayerDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.