Ensure that spaces in code between different types of highlighting have the correct font.