Patch GNU Nano to Add Bracket Flashing


You are here: Andrew Ho > Software > Nano Bracket Flashing

Powerful programmers' text editors like Emacs or Vim generally include a feature where when you type a close bracket (like a close parenthesis), the corresonding open bracket is briefly highlighted. This is indispensible when writing code, which often involves lots of balanced delimiters.

I've written a patch to add this feature to the GNU Nano editor. You can download these below either as a diff that you can apply using GNU Patch, or as a complete source distribution.

Download

The patch files are also useful to read if you just want to understand how the patch works; in each case, the code is slightly kludgy, mainly due to the many globals and complicated horizontal whitespace handling routines used in Nano.

See Also

To gain a couple lines of vertical whitespace:



Andrew Ho (andrew@zeuscat.com)