make highlighter faster by allowing spans to contain multiple chars
made settings object, computing more data stats