1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWebView: Create a method to syntax-highlight page source with HTML

This tokenizes a page's source to produce HTML with syntax highlighting.
The first implementation here is rather simple; we do not yet implement
code folding, line numbers, etc.

The goal is for this to be used as the View Source implementation for
all Ladybird chromes.
This commit is contained in:
Timothy Flynn 2023-08-28 14:47:29 -04:00 committed by Tim Flynn
parent fea440055a
commit 1e1c3e5a34
4 changed files with 157 additions and 1 deletions

View file

@ -4,6 +4,7 @@ set(SOURCES
DOMTreeModel.cpp
OutOfProcessWebView.cpp
RequestServerAdapter.cpp
SourceHighlighter.cpp
StylePropertiesModel.cpp
ViewImplementation.cpp
WebContentClient.cpp