Most IDE's match braces/parentheses/etc. Dreamweaver seems to do it, too, if you turn it on (on mobile now, will test it when I'm on my laptop later). Notepad++ matches braces as well.
So just copy-paste the code to an IDE, and use the brace-matching there.
If you don't have an IDE which does this, use the online editor on github. Edit a file of the same language (fork a repo with a file of the same language if you can't get one), the editor has syntax highlighting and brace matching. Actually, for brace matching you can edit a file in any programming language (except for the few languages that treat braces differently)--just that you won't get syntax highlighting.