TextEditor: Move HighlightDefinition constants to where they are used

Change-Id: Ibdd3147cc2a64407802fa237b7943d2e96c90030
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@digia.com>