Class MessageLogHighlighter

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

public abstract class MessageLogHighlighter extends Object
To be used to highlight the message log in outLogCodeArea

There are two kinds of message log:
1. The game massage, begin with [Info], the "[Info]" is green color
2. Java exception, except the game massage are all Java exception, red color

Don't extend this class
Just use the static methods
  • Constructor Details

    • MessageLogHighlighter

      public MessageLogHighlighter()
  • Method Details

    • applyHighlighting

      public static void applyHighlighting(@NotNull @NotNull org.fxmisc.richtext.CodeArea target)
      Add the highlighter to the target CodeArea
      Parameters:
      target - the CodeArea to be highlighted