Explorar el Código

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

Andreas Kling hace 4 años
padre
commit
81641ee469

+ 1 - 1
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().column + token_start_offset,
                 token->start_position().line,
                 token->start_position().line,
                 token->start_position().column + token->tag_name().length() + token_start_offset - 1,
                 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);
                 token->is_start_tag() ? AugmentedTokenKind::OpenTag : AugmentedTokenKind::CloseTag);
 
 
             for (auto& attribute : token->attributes()) {
             for (auto& attribute : token->attributes()) {