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.

Installation

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

Tech Debt Best Practices: Minimizing Opportunity Cost & Security Risk

Tech debt is an unavoidable consequence of modern application development, leading to security and performance concerns as older open-source codebases become more vulnerable and outdated. Unfortunately, the opportunity cost of an upgrade often means organizations are left to manage growing risk the best they can. But it doesn’t have to be this way.

Read More
Scroll to Top