chroma
chroma copied to clipboard
Angular lexer support
The current HTML lexer is very nice, but it doesn't support angular syntax, see this screenshot as an example:
Perhaps a new "Angular" setting like react or vue.
What do you think? Thanks
I stumbled accross the "angular2" lexer. Somehow I missed it. Although, reading pygments docs, they seem to support "complex?" lexers. Something like html+ng2
so they have both applied together.
Is that something supported by chroma?
Thanks.
Yes nested lexers are supported by Chroma. HTML+PHP is a good example of this.
@alecthomas was just curious, if there is a way to nest HTML+vue lexers? Ref: #456 .
PS: I tried to tweak some code for fixing it but didn't reach to any conclusion on the fix. Will try to give it a go again.