java.lang.Object
qupath.lib.gui.scripting.richtextfx.stylers.YamlStyler
All Implemented Interfaces:
ScriptStyler

public class YamlStyler extends Object implements ScriptStyler
Styling to apply to a CodeArea, based on YAML syntax.
Since:
v0.4.0
Author:
Pete Bankhead
  • Method Details

    • getLanguageNames

      public Set<String> getLanguageNames()
      Description copied from interface: ScriptStyler
      Get a set of the scripting languages supported by this styler.

      Note: One of the names returned by this method must match exactly (but case-insensitive) that of the corresponding ScriptLanguage for QuPath to automatically apply it to the script editor when needed.

      Specified by:
      getLanguageNames in interface ScriptStyler
      Returns:
    • computeEditorStyles

      public org.fxmisc.richtext.model.StyleSpans<Collection<String>> computeEditorStyles(String text)
      Description copied from interface: ScriptStyler
      Compute styling for the specified text, considering it will be used in the main editor.
      Specified by:
      computeEditorStyles in interface ScriptStyler
      Parameters:
      text - the text to process styling for
      Returns:
      stylespans the StyleSpans to apply