Is it possible to make brace match syntax highlighting in posts?

When reading a post with long code blocks that have many loops and inner loops, it would be helpful to find where a particular block of code ends.

So that when we click on a starting brace, it would show the matching closing brace and vice-versa.

As @Barmar suggested in his comment, it would be more helpful to have a brace matching in the input editor than posts.