update colors and linenumbers