Class MinecraftSyntaxHighlighter
java.lang.Object
github.jaffe2718.mccs.jfx.unit.font.MinecraftSyntaxHighlighter
Used to highlight Minecraft instruction syntax in a CodeArea.
Uses a regular expression to match commands, numbers, and braces.
example: /give @p minecraft:stone{CustomModelData:1}
Use Guide: MinecraftSyntaxHighlighter.applyHighlighting(yourCodeArea);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applySyntaxHighlighting
(@NotNull org.fxmisc.richtext.CodeArea codeArea) Add the highlighter to the target CodeArea
-
Constructor Details
-
MinecraftSyntaxHighlighter
public MinecraftSyntaxHighlighter()
-
-
Method Details
-
applySyntaxHighlighting
public static void applySyntaxHighlighting(@NotNull @NotNull org.fxmisc.richtext.CodeArea codeArea) Add the highlighter to the target CodeArea- Parameters:
codeArea
- the CodeArea to be highlighted
-