accept mode options object in static highlight extension