no.
if you want colors, you can't use pre.
this means, you need to code all whitespaces longer than 1 with " "+nbsp

so, when you do that join-split on line and it has, say 6 whitespaces in the start, it would have then " "+nbsp+" "+nbsp+" "+nbsp

for tabs, it depends, but hardcoding by your desicion, say 4-6 spaces is good.
_________________________
!

download KiXnet