Specifies a boolean value determining whether manual line breaks ("\n") will be emphasized with an end of line symbol (default is U+00B6 = PILCROW SIGN) at the end of the line, in this case that symbol does not belong to the text content and cannot be edited or selected. Per default the end of line symbol will not be shown.
A very useful extension, commonly used in text editors. Especially if a line break has a special meaning it is important that this is visible for the user.
It should be possible to define the end of line symbol, and the foreground color of the end of line symbol:
Specifies the character to use when displaying the end of line symbol (see option -showendofline). An empty argument will force the use of the default symbol (U+00B6 = PILCROW SIGN).
Specifies the foreground color to use when displaying the end of line symbol (see option -showendofline). An empty argument will force the use of the foreground color (set with -foreground; this is the default).
This requires an additional tag attribute:
Specifies the foreground color to use when displaying the end of line symbol inside the tagged region. An empty argument will force the use of the foreground color (set with -foreground; this is the default).
I think that a tag option -eolchar is not needed.
Below a simple example:
The source of this example:
pack [text .t]
.t configure -showendofline yes -eolcolor darkred
.t configure -state readonly
.t configure -wrap codepoint
.t configure -font [list [font configure TkTextFont -family] -14]
.t configure -width 60 -height 9
.t configure -padx 5 -pady 5
.t tag configure bold -font [list [font configure TkTextFont -family] -18 bold]
.t tag configure light -foreground #555555
.t insert end "Practicing the Art\n" bold
.t insert end "\[P]aragraphing is ultimately an art. Its good practice depends on "
.t insert end "\"feel\", voice and instinct rather than on any formula or "
.t insert end "techniques that can be dutifully learnt.\n"
.t insert end "(Richard Palmer, Write in Style: A Guide to Good English, 2nd ed. "
.t insert end "Routledge, 2002)\n"
.t insert end "\[http://grammar.about.com/od/advicefromthepros/a/Writers-" light
.t insert end "On-Writing-The-Art-Of-Paragraphing.htm]\n" light