Is there a way to enclose selected text in HTML tags with a keyboard shortcut?
For example, for selected `text`, after using a shortcut it becomes `<(cursor)>text</(cursor)>`, and then after typing `tag` and pressing space (or using any key moving the cursor or inserting whitespace) it becomes `<tag (cursor)>text</tag>`.
IIRC there are a couple of plugins that do stuff like that, have a look at https://plugins.geany.org/
I agree with you. I agree with you.
I'm looking for this also. I think I see a way to enclose in single characters, but not multi-character tags.
I think XML-tagging from Addons-plugin could help here a little https://plugins.geany.org/addons.html#xml-tagging
Thank you. I see XML-Tagging was added to plugins way back at v. .19. I have plugins 1.33 from the debian repo installed, yet the geany plugin manager does not list XML-t. I downloaded plugins 1.34 here, but have no idea what "waf" is to compile them. But I don't see why 1.34 would make the difference anyway.
I just recorded a macro to do this, and it's working very well.
@paul1149 It's not a standalone plugin. It's a function of addons.
Because I wanted to know how to do this too, I ended up putting a brief howto on the Geany wiki here: https://wiki.geany.org/howtos/enclose_text_in_html_tags
github-comments@lists.geany.org