Navigation
API > API/Runtime > API/Runtime/Slate
Get/set the raw text to/from a text layout, and also inject syntax highlighting
| Name | FSyntaxHighlighterTextLayoutMarshaller |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
| Include Path | #include "Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h" |
Syntax
class FSyntaxHighlighterTextLayoutMarshaller : public FPlainTextLayoutMarshaller
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSyntaxHighlighterTextLayoutMarshaller
(
TSharedPtr< ISyntaxTokenizer > InTokenizer |
Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSyntaxHighlighterTextLayoutMarshaller() |
Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnableSyntaxHighlighting
(
const bool bEnable |
Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h | ||
bool IsSyntaxHighlightingEnabled() |
Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
Overridden from ITextLayoutMarshaller
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool RequiresLiveUpdate() |
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 | Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h | |
virtual void SetText
(
const FString& SourceString, |
ITextLayoutMarshaller. | Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ParseTokens
(
const FString& SourceString, |
Framework/Text/SyntaxHighlighterTextLayoutMarshaller.h |