Macro Monday – a new macro to dig into every Monday!
Let’s say you have the following snippet of html:
<strong>This text is bold</strong>
With this macro you can simply put your cursor anywhere within the node contents ‘and execute the macro to select the contents of the node (ie. the text).
This macro is very plain and fairly dumb, it will likely not be able to select
complex values (eg. sub-nodes). It currently only covers html “braces” (ok,
technically not braces), but support for other delimiters should be relatively
easy to add and is something I originally intended to include (hence the name), and will likely add soon.
Feel free to fork and extend.
To install the macro simply hit the “View Resource” and “Install Instructions” links below. You’ll want to hook the macro up to the “On Startup” trigger.
Share Your Own Awesome Macros
Title image courtesy of Florian Olivo on Unsplash.