do not attempt to highlight syntax when non-HTML reporter is used

see #1363 and discusson in 414d793d01ab745ad30a843caf3e1577187f2149