Package com.intellij.openapi.fileTypes

Examples of com.intellij.openapi.fileTypes.SingleLazyInstanceSyntaxHighlighterFactory


    public JFlexLanguage() {
        super(ID);

        //somehow lang.syntaxHighlighterFactory extension won't work for me
        SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
            @NotNull
            protected SyntaxHighlighter createHighlighter() {
                return new JFlexSyntaxHighlighter();
            }
        });
View Full Code Here


    private StoryLanguage() {
        super("STORY");

        //somehow lang.syntaxHighlighterFactory extension won't work for me
        SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {

            @NotNull
            protected SyntaxHighlighter createHighlighter() {
                return new StorySyntaxHighlighter();
            }
View Full Code Here

    public NginxLanguage() {

        super("nginx");

        SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
            @NotNull
            protected SyntaxHighlighter createHighlighter() {
                return new NginxSyntaxHighlighter();
            }
        });
View Full Code Here

  private OgnlLanguage() {
    super(ID);

    SyntaxHighlighterFactory.LANGUAGE_FACTORY
        .addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
          @NotNull
          protected SyntaxHighlighter createHighlighter() {
            return new OgnlHighlighter();
          }
        });
View Full Code Here

TOP

Related Classes of com.intellij.openapi.fileTypes.SingleLazyInstanceSyntaxHighlighterFactory

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.