Handle magic text in colored text processing