eg.
<divclass="flex gap-2 mt-4"></div>
The highlighter will split the class string on the whitespace, and then mark other classes as attributes.
iex> Makeup.highlight(~s|<div class="flex gap-2 mt-4"></div>|, lexer: Makeup.Lexers.HTMLLexer)
generates:
<preclass="highlight"><code><spanclass="p" data-group-id="2418906342-1"><</span><spanclass="nt">div</span><spanclass="w"></span><spanclass="na">class</span><spanclass="o">=</span><spanclass="s">"flex</span><spanclass="w"></span><spanclass="na">gap-2</span><spanclass="w"></span><spanclass="s">mt-4"</span><spanclass="p" data-group-id="2418906342-1">></span><spanclass="p" data-group-id="2418906342-2"></</span><spanclass="nt">div</span><spanclass="p" data-group-id="2418906342-2">></span></code></pre>
eg.
The highlighter will split the
classstring on the whitespace, and then mark other classes as attributes.generates: