Class MarkdownStyler
java.lang.Object
qupath.lib.gui.scripting.richtextfx.stylers.MarkdownStyler
- All Implemented Interfaces:
ScriptStyler
Styling to apply to a
CodeArea
, based on Markdown syntax.- Since:
- v0.4.0
- Author:
- Pete Bankhead
-
Method Summary
Modifier and TypeMethodDescriptionorg.fxmisc.richtext.model.StyleSpans
<Collection<String>> computeEditorStyles
(String text) Compute styling for the specifiedtext
, considering it will be used in the main editor.Returns"-fx-font-family: sans-serif"
to indicate the text should not be formatted as code by default.Get a set of the scripting languages supported by this styler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface qupath.lib.gui.scripting.richtextfx.stylers.ScriptStyler
computeConsoleStyles
-
Method Details
-
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 interfaceScriptStyler
- Returns:
-
getBaseStyle
Returns"-fx-font-family: sans-serif"
to indicate the text should not be formatted as code by default.- Specified by:
getBaseStyle
in interfaceScriptStyler
- Returns:
-
computeEditorStyles
Description copied from interface:ScriptStyler
Compute styling for the specifiedtext
, considering it will be used in the main editor.- Specified by:
computeEditorStyles
in interfaceScriptStyler
- Parameters:
text
- the text to process styling for- Returns:
- stylespans the
StyleSpans
to apply
-