Minor hex color code highlighter refactoring.
Finally figured out a way to test hex code highlighter.