Here is a simple example of an implementation of string-snip%
I put it here because, while there are good examples in the MrEd (gui) manual, this is one that isn't covered.
Use DrScheme language MrEd
Basic procedure;
define a new subclass of snip
override get-extent
override draw
Note
Didn't implement snipclass - though this would be necessary for copy-paste operations - as well as saving the editor using the snip. But this name nor be necessary.