Modification from jQuery.highlightTextarea to jQuery.annotateTextarea:
- Instead of giving a list of words to highlight, give a list of annotations (javascript objects that represents an annotation) to highlight
- Each annotation can have a specific class that can be used to define highlighting colours or styles in CSS
- Each annotation has a begin position and a length -> the corresponding text is considered as annotated
- the method setWords has been removed and replaced by setAnnotation