Injected language tags that sorounds base code

Hi,
I am trying to inject a language in comments that have matching start and end tags like similar to xml.

Example:

// &begin[*name*]
some code 
// &end[*name*]

Where begin and end matches if the name is the same and otherwise do not. Is it possible to do such a thing with injection?

1 Like