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.

Nathan Rijksen

Nathan Rijksen

Nathan Rijksen is the Development Lead for Komodo IDE. He works adeptly with Mozilla, Python and JavaScript to ensure that Komodo IDE is the IDE of choice for development teams. Nathan has been working with Komodo IDE for a decade before joining the development team in 2012. Since then he has worked tirelessly on new features such as Commando, Breadcrumbs, a completely new UI and much more.