public class JavaFileHighlighter extends SyntaxHighlighterBase
Modifier and Type | Field and Description |
---|---|
protected LanguageLevel |
myLanguageLevel |
EMPTY
EP_NAME, PROVIDER
Constructor and Description |
---|
JavaFileHighlighter() |
JavaFileHighlighter(LanguageLevel languageLevel) |
Modifier and Type | Method and Description |
---|---|
Lexer |
getHighlightingLexer()
Returns the lexer used for highlighting the file.
|
TextAttributesKey [] |
getTokenHighlights(IElementType tokenType)
Returns the list of text attribute keys used for highlighting the specified token type.
|
protected final LanguageLevel myLanguageLevel
public JavaFileHighlighter()
public JavaFileHighlighter(LanguageLevel languageLevel)
public Lexer getHighlightingLexer()
SyntaxHighlighter
public TextAttributesKey [] getTokenHighlights(IElementType tokenType)
SyntaxHighlighter
tokenType
- The token type for which the highlighting is requested.