1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibGUI: Add TextEditor::force_rehighlight() method

This commit is contained in:
Itamar 2022-02-07 08:08:09 +02:00 committed by Andreas Kling
parent 22f835332a
commit 10d75d7f21
2 changed files with 12 additions and 0 deletions

View file

@ -175,6 +175,7 @@ public:
void set_cursor(size_t line, size_t column);
virtual void set_cursor(TextPosition const&);
Syntax::Highlighter* syntax_highlighter();
Syntax::Highlighter const* syntax_highlighter() const;
void set_syntax_highlighter(OwnPtr<Syntax::Highlighter>);
@ -209,6 +210,7 @@ public:
bool text_is_secret() const { return m_text_is_secret; }
void set_text_is_secret(bool text_is_secret);
void force_rehighlight();
protected:
explicit TextEditor(Type = Type::MultiLine);