Fixed bug when styling.
Changed static modifier and moved declarations to top.
Now also the syntax styling is based on the tokens map. Added documentation.
Extracted code that found suited style to a separate method.
Removed some unused parameter.
Added documentation to GenericTextEditor "interface"
Update tasks.