My first attempt was only to add angle brackets to the auto bracket code but
that caused surprising odd behavior in the normal edit flow, so it needs to be
done in a special way which obviously cause no trouble.
Once done this way, I had the idea to add much more char to this special
handlinWith that option you can add e.g. Some of these may handy when write MarkdownMarkdown markups, some perhaps elsewhere.
- Improve readability of auto bracket codeor what ever else may handy,
- Harmonize QChar param as const value, not referenceafterwards to some text like you can do with quotes and enabled auto brackets
- Remove unneeded coderedundant const QChar typedChar
- Avoid chars[0]