fix syntax mistake after changing markup type
Update the syntax highlighting to work after text set - thanks a lot to herdsman for the initial patch