Class MinecraftSyntaxHighlighter

java.lang.Object
github.jaffe2718.mccs.jfx.unit.font.MinecraftSyntaxHighlighter

public abstract class MinecraftSyntaxHighlighter extends Object
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 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