Highlight before converting to html.

Try and avoid breaking html by highlighting before converting.
Use different function for highlighting.

Other function didn't work and if it was made to work it would break other
functionality.