added option to define highlights using an array of ranges like [[1,5], [30,56]]