Add the tag tagName to the range of characters from index1 up to but not including the next index in args. Further pairs of indices may follow in args to tag additional ranges; a trailing single index tags just the character at that index.
tkinter/Text.tag_add
Text.tag_add