mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 22:08:59 +00:00
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.
16 lines
250 B
C++
16 lines
250 B
C++
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/StringView.h>
|
|
|
|
namespace WebView {
|
|
|
|
String highlight_source(URL const&, StringView);
|
|
|
|
}
|