I want to recreate HTML as user-defined language. In HTML, attributes like id
, name
or class
are only highlighted within HTML tags.
Like:
<span class="test">Hello</span>
How can I define in UDL that things like value
or name
are only highlighted inside a delimiter (in this case between </>
)?
I tried to adjust which keyword groups were highlighted in the default style, but the "Nesting" options (where you could define what is highlighted inside this tag) are disabled for the default style.
This is not possible within capabilities of the UDL 2, see them documented. You may reach for more complex UDL highlighters as the one in SynWrite. But with growing capabilities, they are also more slightly more difficult to master.