support text+tags mode in prettyPrint