I find this macro runs very fast (<< 1 sec) on my 2013 MBP-15R with 2.7Ghz.
It runs fast enough for me to continue typing immediately after typing the trigger, without any pause.
I actually find myself typing HTML/PHP outside of dedicated editors more often than within them. I run and contribute to a number of WordPress-powered blogs, and I write HTML in the posts most of the time. Even more often than that I’m writing books or tutorial articles in Word or InCopy and adding a few lines of HTML for examples. Even in BBEdit matching tags don’t automatically appear.
I miss using Nick Bradbury’s TopStye Pro from my Windows days. That was a great CSS, HTML, and PHP editor.
I recommend Atom. Free, and the community of package developers is thriving. I regularly edit in Atom, then copy/paste into other places (including KM).
After installing Atom, there’s one package you need to install, and some others I recommend:
autoclose-html
I also recommend, for HTML development:
atom-beautify
atom-html-preview
I also like, for HTML development:
linter
linter-htmlhint
I’ll leave it at this for now. If you install Atom and decide you like it, I have a list of packages I really like, so go ahead and ask.
BTW, although you can remap keystrokes in Atom, it can be problematic sometimes, so when I need to remap Atom keys, I use KM.
I'm REALLY new to writing macros with KM (and Regular Expressions still faze me) but this one solves an annoyance I've had for a long time. Is there a way to include single and double quotes? I THINK I've modified the macro according to the instructions in the comment but when I try using the quotes, the macro, types the ; and the " then deletes them both and stops. Is there an escape character or something I need to do to use quotes in this? Thanks for any guidance you can provide. You guys make this old guy wish he'd started using a Mac a long time ago.
@JMichaelTX Nice macro. With my U.S. International PC keyboard layout I only have to type the semicolon before the <. All other brackets don't require this trigger.
Would it be possible to use Enter as a way to position the text cursor behind the closing bracket? Kind of temporarily redefining this key?