TIL that in Nix, if you have a multi-line string of code, you can simply prefix it with a comment stating the name of the language and Tree-sitter will highlight it for you!

{
# The TOML string below will be highlighted!
programs.foo.extraConfig = /* toml */ ''
bar = "baz"
'';
}

0

If you have a fediverse account, you can quote this note from your own instance. Search https://tilde.zone/users/bricked/statuses/115697260997724260 on your instance and quote it. (Note that quoting is not supported in Mastodon.)