More painting fixes (column cropping) and optimizations for highlight rules (using python regexs instead of QRegExps)