当前位置: 首页>>代码示例>>Java>>正文


Java SyntaxHighlighterBase类代码示例

本文整理汇总了Java中com.intellij.openapi.fileTypes.SyntaxHighlighterBase的典型用法代码示例。如果您正苦于以下问题:Java SyntaxHighlighterBase类的具体用法?Java SyntaxHighlighterBase怎么用?Java SyntaxHighlighterBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SyntaxHighlighterBase类属于com.intellij.openapi.fileTypes包,在下文中一共展示了SyntaxHighlighterBase类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@NotNull
@Override
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
    TextAttributesKey[] defaultTextAttributeKeys, extendedHighlighterKeys;

    defaultTextAttributeKeys = super.getTokenHighlights(tokenType);
    extendedHighlighterKeys = SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType));

    int numKeys = defaultTextAttributeKeys.length + extendedHighlighterKeys.length;
    TextAttributesKey[] merged = new TextAttributesKey[numKeys];

    System.arraycopy(defaultTextAttributeKeys, 0, merged, 0, defaultTextAttributeKeys.length);
    System.arraycopy(extendedHighlighterKeys,
            0, merged,
            defaultTextAttributeKeys.length,
            extendedHighlighterKeys.length);

    return merged;
}
 
开发者ID:christoffer,项目名称:pycharm-pyxl,代码行数:20,代码来源:PyxlHighlighter.java

示例2: getAttributes

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
public TextAttributes getAttributes(IElementType tokenType) {
  TextAttributes attrs = myAttributesMap.get(tokenType);
  if (attrs == null) {
    attrs = convertAttributes(SyntaxHighlighterBase.pack(myBackground, mySyntaxHighlighter.getTokenHighlights(tokenType)));
    myAttributesMap.put(tokenType, attrs);
  }
  return attrs;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:LayeredLexerEditorHighlighter.java

示例3: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
    return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, keys1.get(tokenType));
}
 
开发者ID:LichFaker,项目名称:RtplPlugin,代码行数:6,代码来源:RtplSyntaxHighlighter.java

示例4: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
  return SyntaxHighlighterBase.pack(ATTRIBUTES.get(tokenType));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RestSyntaxHighlighter.java

示例5: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
  return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType)));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:HtmlFileHighlighter.java

示例6: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
  return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PropertiesHighlighter.java

示例7: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@Nonnull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
  return SyntaxHighlighterBase.pack(keys1.get(tokenType), keys2.get(tokenType));
}
 
开发者ID:raydac,项目名称:netbeans-mmd-plugin,代码行数:5,代码来源:MMHighlighter.java

示例8: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@NotNull
@Override
public TextAttributesKey[] getTokenHighlights(IElementType iElementType) {
    return SyntaxHighlighterBase.pack(keys1.get(iElementType), keys2.get(iElementType));
}
 
开发者ID:dubrousky,项目名称:CMaker,代码行数:6,代码来源:CMakeHighlighter.java

示例9: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@Override
@NotNull
public TextAttributesKey[] getTokenHighlights(IElementType tokenType)
{
	return SyntaxHighlighterBase.pack(XmlHighlighterColors.HTML_CODE, pack(keys1.get(tokenType), keys2.get(tokenType)));
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:7,代码来源:HtmlFileHighlighter.java

示例10: getTokenHighlights

import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; //导入依赖的package包/类
@NotNull
public TextAttributesKey[] getTokenHighlights(final IElementType tokenType)
{
	return SyntaxHighlighterBase.pack(ourMap.get(tokenType), VELOCITY_SCRIPTING_BACKGROUND);
}
 
开发者ID:consulo,项目名称:consulo-apache-velocity,代码行数:6,代码来源:VtlSyntaxHighlighter.java


注:本文中的com.intellij.openapi.fileTypes.SyntaxHighlighterBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。