mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWeb: Add a super basic HTML syntax highlighter
This can currently highlight tag names and attribute names/values.
This commit is contained in:
committed by
Andreas Kling
parent
aa7939bc6c
commit
97a230e4ef
@@ -110,6 +110,10 @@ public:
|
||||
Optional<HTMLToken> next_token();
|
||||
|
||||
void switch_to(Badge<HTMLDocumentParser>, State new_state);
|
||||
void switch_to(State new_state)
|
||||
{
|
||||
m_state = new_state;
|
||||
}
|
||||
|
||||
void set_blocked(bool b) { m_blocked = b; }
|
||||
bool is_blocked() const { return m_blocked; }
|
||||
|
||||
Reference in New Issue
Block a user