Emacswiki on its introduction highlightparentheses, download the latest version through the author's Github:https://github.com/nschum/highlight-parentheses.el
The latest version of the current edition is 1.0.2
Add the following statement to the load file
(Require ' highlight-parentheses)
Use M-x Highlight-parentheses-mode to start.
You can see that the cursor is anywhere in parentheses, highlight the closest parentheses, and highlight the outer n-brackets in turn with different colors. If you feel that the default color is too close, not easy to distinguish, you can also colour:
In the Highlight-parentheses.el 61 line, there is the following definition
(Defcustom hl-paren-colors ' ("Firebrick1" "IndianRed1" "IndianRed3" "IndianRed4")
Customize these colors, from left to right in the color of the brackets inside out.
Emacs for window:24.2highlight-parentheses.el:1.0.2
Emacs+highlight-parentheses Highlight Brackets