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

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
parent 124cbea347
commit 9d0c6a32bd

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();