A million variations exist. I'm looking for a programming-language-agnostic concept. The closest you'll find are templating languages like Handlebars
Both are (fairly) programming language agnostic, but in the context of an editor, would become specific. The editor would have to know _how_ to represent them in the code’s language.