Package org.jline.builtins
Class SyntaxHighlighter
java.lang.Object
org.jline.builtins.SyntaxHighlighter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidstatic SyntaxHighlighterBuild SyntaxHighlighterstatic SyntaxHighlighterBuild SyntaxHighlighterprotected static SyntaxHighlighterprotected static SyntaxHighlighterhighlight(AttributedString attributedString) protected static voidnanorcInclude(String parameter, List<Path> syntaxFiles) protected static voidnanorcTheme(String parameter, List<Path> syntaxFiles) voidrefresh()reset()voidsetCurrentTheme(Path currentTheme) void
-
Field Details
-
REGEX_TOKEN_NAME
- See Also:
-
TYPE_NANORCTHEME
- See Also:
-
DEFAULT_NANORC_FILE
- See Also:
-
DEFAULT_LESSRC_FILE
- See Also:
-
COMMAND_INCLUDE
- See Also:
-
COMMAND_THEME
- See Also:
-
-
Method Details
-
build
-
build
protected static SyntaxHighlighter build(List<Path> syntaxFiles, String file, String syntaxName, boolean ignoreErrors) -
build
Build SyntaxHighlighter- Parameters:
nanorc- Path of nano config file jnanorcsyntaxName- syntax name e.g 'Java'- Returns:
- SyntaxHighlighter
-
nanorcInclude
- Throws:
IOException
-
nanorcTheme
- Throws:
IOException
-
addFiles
protected static void addFiles(String parameter, Consumer<Stream<Path>> consumer) throws IOException - Throws:
IOException
-
build
Build SyntaxHighlighter- Parameters:
nanorcUrl- Url of nanorc file- Returns:
- SyntaxHighlighter
-
setCurrentTheme
-
getCurrentTheme
-
setParser
-
reset
-
refresh
public void refresh() -
highlight
-
highlight
-
highlight
-