Ported v3.1 Text highlighting plugin to v4.0