hanging indents and/or paragraph spacing for word wrap

33 views
Skip to first unread message

Shawn Rutledge

unread,
Oct 16, 2009, 2:49:52 PM10/16/09
to scite-i...@googlegroups.com
When I'm editing with word wrap turned on, sometimes it's not
sufficiently obvious where the paragraph breaks are. It would be nice
to have options for first-line indent and remaining lines indentation
in that case. Another way would be to add extra spacing between
paragraphs (in pixels or points, not whole lines necessarily). This
is typically a word processor feature, but can be implemented to apply
to the entire file, so that no metadata is necessary. E.g. maybe I'd
configure Scite so that text files in general have paragraph spacing
(since I like to write notes with paragraph breaks only, not with line
breaks), but my TODO list has a small hanging indent (since each line
item is a TODO item, but sometimes they take more text to describe),
and C/C++/java source always has a largish hanging indent (a LF means
only a new line, and excessively long lines are not "normal," but when
they do occur I'd like them to look closer to proper indentation).

Shawn Rutledge

unread,
Oct 16, 2009, 2:57:20 PM10/16/09
to scite-i...@googlegroups.com
Oops I just discovered wrap.visual.startindent, so there goes half of
the request. :-)

Paragraph spacing might still be nice sometimes though.

Pedro Andres Aranda Gutierrez

unread,
Oct 17, 2009, 2:08:26 AM10/17/09
to scite-i...@googlegroups.com
A nice thing to have would be the kind visual fill column GEDIT has,
complemented with some EMACSish fill column philosophy. So I'd like to
have a wrap.column variable to:
1) override the window width when set
2) draw some sort of visual help as to where the wrapping occurs.

Just my .02 cents,
/PA

Neil Hodgson

unread,
Oct 18, 2009, 8:27:57 AM10/18/09
to scite-i...@googlegroups.com
Shawn Rutledge:

> Another way would be to add extra spacing between
> paragraphs (in pixels or points, not whole lines necessarily).

Fractional line heights is a major change. It may be possible to
leverage the work done for line annotations to add extra spacing
lines. One approach would be to just add an empty annotation line to
each document line using SCI_ANNOTATIONSETTEXT(line, " ").

Slightly more work would be checking every piece of code that
implements annotation lines (search for annotationVisible in
Editor.cxx) and add in the extra height.

Neil

Reply all
Reply to author
Forward
0 new messages