Browser: Show line numbers when viewing page source

This commit is contained in:
Nick Tiberi 2020-05-07 16:49:39 -04:00 committed by Andreas Kling
commit 9d0c6a32bd
Notes: sideshowbarker 2024-07-19 06:54:16 +09:00

View file

@ -238,6 +238,7 @@ Tab::Tab()
auto& editor = window->set_main_widget<GUI::TextEditor>();
editor.set_text(source);
editor.set_readonly(true);
editor.set_ruler_visible(true);
window->set_rect(150, 150, 640, 480);
window->set_title(url);
window->show();