On Tuesday, June 2, 2020 at 9:16:21 AM UTC-4, Edward K. Ream wrote: > > > On Mon, Jun 1, 2020 at 3:59 PM Thomas Passin <[email protected] > <javascript:>> wrote: > >> If this isn't an option already, it would be a useful enhancement. Many >> text editors show a thin vertical line at 80 columns, or whatever you have >> set. This helps you make sure you don't run over the intended right margin >> while writing code. Presumably it would be configured via and @setting >> value. It could also reduce the number of complaints from pylint. >> > > Leo has no such setting. Apparently, QTextEdit > <https://doc.qt.io/qt-5/qtextedit.html>doesn't have a way to do this > natively. Anything is possible with a custom paint method. >
I have done something like this for HTML pages using CSS by specifying a left boundary. By using left margin and left padding combinations, it is possible to display indented lists (i.e., like Leo outlines) with left vertical guide lines that follow the indentation. I wonder if this can be done on the right with some combination of margin and overflow settings (to avoid unwanted wrapping at the visible line). And if it can, I wonder if a QTextEdit would support it. I've attached an example of this left-margin-by-css effect. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/a1ec4a5c-ebc5-42cc-a5dd-2bf5656884e3%40googlegroups.com.
