[enh][gui] improve syntax highlighter