Added support of CSS highlighting, plus closing tab.