I'm not quite sure how to describe this, but I want to create a custom command that treats its input as verbatim and allows some control of the output.
In pseudocode, I want:
(But that obviously doesn't work)
newverbs gets me close to what I need, but e.g.
\code!~! rather than