Select Brace Contents

Select Brace Contents

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.

Install Instructions

Share Your Own Awesome Macros

Do you have your own awesome macros that you think others could benefit from? Submit them to the Resources Section and if you really want to get it noticed write a Macro Monday blog about it.
Title image courtesy of Florian Olivo on Unsplash.

Recent Posts

Scroll to Top