Hello! I've a problem. I'm making a c++ syntax highlighter for use it on QPlainTextEdit. I've already the keywords, the basic types the numbers and the preprocessor directives, but I'm not able to highlight the chars in the way 'c'.
I trying a lot of ways to code the regular expression but only I achieve something like this using
Qt Code:
  1. QRegExp("\\b'.'\\b")
To copy to clipboard, switch view to plain text mode 
: 'a'a'a'a'c'g'g'{'{'{''{'/'/'/'9'999'34'
is the regexp correct? I want to highlight both chars and quote (i.e. char a = 'L', b = '{').

Sorry for my poor English and thanks in advance.