1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Make tag names bold in syntax-highlighted HTML :^)

This commit is contained in:
Andreas Kling 2021-05-21 15:13:19 +02:00
parent bcfde43849
commit 81641ee469

View file

@ -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()) {