diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-21 15:13:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-21 15:32:53 +0200 |
commit | 81641ee469bee9527d2edc9d8dff787c91f3b53d (patch) | |
tree | efb97f9760ec67f8f71a0aa53742b87b18468d21 | |
parent | bcfde43849d1b7226812ec7c1f39fadd9d3d9a03 (diff) | |
download | serenity-81641ee469bee9527d2edc9d8dff787c91f3b53d.zip |
LibWeb: Make tag names bold in syntax-highlighted HTML :^)
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp index 53dba5bf18..29bd0fdcfa 100644 --- a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp +++ b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp @@ -94,7 +94,7 @@ void SyntaxHighlighter::rehighlight(const Palette& palette) token->start_position().column + token_start_offset, token->start_position().line, token->start_position().column + token->tag_name().length() + token_start_offset - 1, - { palette.syntax_keyword(), {} }, + { palette.syntax_keyword(), {}, false, true }, token->is_start_tag() ? AugmentedTokenKind::OpenTag : AugmentedTokenKind::CloseTag); for (auto& attribute : token->attributes()) { |