Highlight open & close brackets in QTextEdit
Hi,
I want to highlight open and close braces in QTextEdit exactly how Qt creator does when we code.
when I move my cursor to open brace "(" the respective close brace ")" should be highlight and opposite also should work.
I am interested to know is there a way available in Qt already for this behavior or do we need to implement our own algorithm.
Thanks in advance :-)
Re: Highlight open & close brackets in QTextEdit
Hi.
I think you can take a look here: http://www.qtcentre.org/threads/6165...ht=#post272950. There are many features for editors in that program. Even though it is python, I believe implementation in C++ won't differ much.
Re: Highlight open & close brackets in QTextEdit
Here is the best I found. we could extract
Quote:
automatic parenthesis matcher
part from this.
http://qt-apps.org/content/show.php/...content=125532 :)