# General #
The annotation API is planned to replace our way of formatting the text.
In general, we need a way to use API and set a specific style to a given range in the text.
The API should be straightforward and look like the following:
`evas_obj_textblock_annotate_set(tb, start, end, style);`
Once the markup handling in Textblock is properly ported to use this API, and duplicate code is removed, the task is considered as done.
## Usage ##
The provided `style` is a string and reflects our current formatting scheme e.g. `color=#ff0` and its counterpart `/color=#ff0`.
Maybe later we will move to another representation like enums, but we will still be required to maintain the current way.
Given `start`, `end` will essentially create both opening and closing format nodes for the style at their respective offsets and text nodes.
Using a negative value for `end` will not create a closing format node. The format can always be closed later with an additional call again with a negative `end` and with the closing format.