I have a Text widget in which I need to mark 'invalid' characters by changing their colour. This works except for two cases:
If the char is a newline/return then the whole of the rest of the line in the Text widget has it's colour changed rather than just the single char position after the last word.
I am highlighting space characters with a tag. When the text widget word wraps the text all of the remainder of the line is highlighted as if there were multiple spaces filling the end of the line.
It appears that the text widget is treating all of the white space displayed at the end of each word wrapped line as a single character.
Is this expected? Is this a bug? Is there a way of preventing this?
Colin
In reply to Tags in TK Text widgets by colintu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |