The problem in this case is that the newline character is invalid input and needs to be highlighted so the user can see their error and remove it just like any other invalid character.
Some background, this is part of a Morse code teaching system and for beginners the character set is purposefully kept small. Morse code does not have the concept of 'newline' and there is no code for such a character, so newline characters are invalid and need to be clearly marked as such.
So, I need a way to make it obvious what the character is and having the Text widget highlight the rest of an apparently empty line is not optimal.
So I need a way to replace the newline characters with something that will show up clearly.
In reply to Re^2: Tags in TK Text widgets
by colintu
in thread Tags in TK Text widgets
by colintu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |