highlight text overflow in python and php