Footer Macro Tutorial to customize markup text patterns in JIRA Comments

Hey there!
I want to write a JIRA plugin which is able of detecting text patterns in JIRA Comments and give them a color coding with HTML span and css.

I worked with the Footer Macro tutorial.

I am able to change the tags in the plugins definition so it recognizes {type-A}Some text {type-A}.
But I want to use angular brackets instead of curved brackets. And also a HTML similar closing operator “/”.

Is there a way i can customize this?