Interface IHighlightStyleComputer
- All Known Implementing Classes:
CodeHighlightStyleComputer
public interface IHighlightStyleComputer
Computes CSS highlight styles for individual parts of a source code for the library RichTextFX.
These styles affect how the source code is displayed to the user.
Syntax of the source code is dependent on the implementation.
- Author:
- Erik Zemčík
-
Method Summary
Modifier and TypeMethodDescriptionorg.fxmisc.richtext.model.StyleSpans<Collection<String>>computeHighlightStyles(String text) Computes CSS highlight styles for a given part of the source code.
-
Method Details
-
computeHighlightStyles
Computes CSS highlight styles for a given part of the source code. These styles are divided into spans, where each span contains styles for the given subpart of the source code.- Parameters:
text- part of the source code- Returns:
- style class spans
- Throws:
IllegalArgumentException- iftextisnull
-