Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Text
Inheritance Hierarchy
- ITextLayoutMarshaller
- FBaseTextLayoutMarshaller
- FPlainTextLayoutMarshaller
- FSyntaxHighlighterTextLayoutMarshaller
- FRichTextSyntaxHighlighterTextLayoutMarshaller
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
| Include | #include "Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h" |
Syntax
class FSyntaxHighlighterTextLayoutMarshaller : public FPlainTextLayoutMarshaller
Remarks
Get/set the raw text to/from a text layout, and also inject syntax highlighting
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSyntaxHighlightingEnabled | True if syntax highlighting is enabled, false to fallback to plain text | |
| TSharedPtr< ISyntaxTokenizer > | Tokenizer | Tokenizer used to style the text |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSyntaxHighlighterTextLayoutMarshaller
(
TSharedPtr< ISyntaxTokenizer > InTokenizer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnableSyntaxHighlighting
(
const bool bEnable |
||
| bool | |||
| void | ParseTokens
(
const FString& SourceString, |
Overridden from ITextLayoutMarshaller
| Type | Name | Description | |
|---|---|---|---|
| bool | Return true if the marshaller requires the text be updated "live" (eg, because it inserts formatting directly into the source text) Returning true will cause SetText to be called every time the source text is changed, which is costly, but required for things like syntax highlighting | ||
| void | SetText
(
const FString& SourceString, |
ITextLayoutMarshaller. |