summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TextEditor.h
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-02-22 15:00:56 -0500
committerAndreas Kling <kling@serenityos.org>2022-02-24 19:09:41 +0100
commit94b74937d8f6a8680386388b8c34e0167fc06ebd (patch)
tree231355c43c4f92e1f5bfa635d58c055fc21f5379 /Userland/Libraries/LibGUI/TextEditor.h
parent3aa95dd4d5be91898d912a39c97a432b05c6f401 (diff)
downloadserenity-94b74937d8f6a8680386388b8c34e0167fc06ebd.zip
LibGUI+LibSyntax: Stringify Highlighter::Language
This patch adds a Highlighter::Language -> string helper and a callback for Highlighter changes.
Diffstat (limited to 'Userland/Libraries/LibGUI/TextEditor.h')
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.h b/Userland/Libraries/LibGUI/TextEditor.h
index ba3e46a97e..dd64808930 100644
--- a/Userland/Libraries/LibGUI/TextEditor.h
+++ b/Userland/Libraries/LibGUI/TextEditor.h
@@ -107,6 +107,7 @@ public:
Function<void()> on_selection_change;
Function<void()> on_focusin;
Function<void()> on_focusout;
+ Function<void()> on_highlighter_change;
void set_text(StringView, AllowCallback = AllowCallback::Yes);
void scroll_cursor_into_view();