mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Spreadsheet: Add a syntax highlighter to the cell editor
This commit is contained in:
parent
8a5ce41065
commit
de13c6939d
Notes:
sideshowbarker
2024-07-19 03:12:32 +09:00
Author: https://github.com/alimpfard
Commit: de13c6939d
Pull-request: https://github.com/SerenityOS/serenity/pull/3283
5 changed files with 109 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
#include "SpreadsheetWidget.h"
|
||||
#include "CellSyntaxHighlighter.h"
|
||||
#include "HelpWindow.h"
|
||||
#include <AK/JsonArray.h>
|
||||
#include <AK/JsonObject.h>
|
||||
|
@ -68,6 +69,7 @@ SpreadsheetWidget::SpreadsheetWidget()
|
|||
auto& cell_value_editor = top_bar.add<GUI::TextEditor>(GUI::TextEditor::Type::SingleLine);
|
||||
cell_value_editor.set_scrollbars_enabled(false);
|
||||
|
||||
cell_value_editor.set_syntax_highlighter(make<CellSyntaxHighlighter>());
|
||||
cell_value_editor.set_enabled(false);
|
||||
current_cell_label.set_enabled(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue