Aivar Annamaa added the comment:
The guides could be implemented by tagging the indentation characters in the
Text widget with tags configured with suitable bgstipple
(https://www.tcl.tk/man/tcl/TkCmd/text.html#M45) bitmaps.
I had some success with this in Thonny IDE, but abandoned the plan
Terry J. Reedy added the comment:
I am guessing that N++ or its GUI framework uses a transparent overlay. For
tkinter, that would mean a transparent Canvas on which one could draw vertical
dotted gray lines 1-pixel wide. However, Serhiy Storchaka in msg213643 of
#20920 said: "Tk supports a
primexx added the comment:
very informative discussion. i'll just say that if it's not possible to do
purely visually, and it can only be done by modifying the textual content, then
it probably should not be done at all. preserving the code (and copy+paste
integrity) is more important. maybe
Terry J. Reedy added the comment:
'│' is a bit taller that ascii bar '|'; hex(ord('│')) = '0x2502'. It is a bit
heavy. In this Windows Firefox box it is slightly lighter than | but in IDLE
with Source Code Pro, it is slightly darder. Worse is being centered instead
of on one edge.
We wou
Raymond Hettinger added the comment:
If this were possible, it would be really nice to have.
FWIW, the rich¹ project was able to pull this off in regular text terminal
window:
$ python3.10 -m pip install rich
$ python3.10 -m rich.pretty
{
│ 'foo': [1, 'Hello World!', 100.123, 323.232, 43232
Terry J. Reedy added the comment:
I loaded a .py file into N++ and see them. Under 3 x, there are clearly
separate minidots. Under 10x, the dots are hardly visible. They are not
characters in the text (cannot be copied) but a special manipulation of the
column of pixels 'between' spaces.
primexx added the comment:
> Please just select the current development version. Others can be marked if
> and when backported
oh sorry about that!
> Please explain exactly what you want
these dotted lines in the attached screenshot
> What you see in the editor is what is saved (includin
Terry J. Reedy added the comment:
[Please just select the current development version. Others can be marked if
and when backported. 3.8 and before only get security fixes. Same for 3.9
after about next May 31.]
Please explain exactly what you want and rewrite something like the following.