indent a wrapped line

167 views
Skip to first unread message

JoopR

unread,
May 25, 2012, 4:46:39 PM5/25/12
to ace-d...@googlegroups.com
Hi,
I would like to have a line that starts on an indent and (soft) wraps at the end of the row, to be displayed using the same indent on the next row. 
I searched the API and the topics in this group but found no references. 
Is it possible? Has it been considered, to anyone's knowledge? Would it be a good and clean idea? 
Joop

Harutyun Amirjanyan

unread,
May 26, 2012, 2:59:59 AM5/26/12
to ace-d...@googlegroups.com
Hi

>I searched the API and the topics in this group but found no references.
ace doesn't have option for that so far, but it shouldn't be very hard to add
one will need to change documentToScreenPosition and related functions
in editSession and find a way to notify layer/text.js about gaps (supporting
arbitrary gaps would be useful for displaying side by side diffs as well)

> Would it be a good and clean idea?
sublime text have similar option, so you can test with it

JoopR

unread,
May 26, 2012, 2:58:14 PM5/26/12
to ace-d...@googlegroups.com
Thank you. I will probably look into it and may get back on this subject. Are you aware of any (design) documentation on the system apart from the published API and the wiki pages?

Harutyun Amirjanyan

unread,
Jun 8, 2012, 2:40:32 AM6/8/12
to ace-d...@googlegroups.com
Hi,
unfortunately there is no other documentation

sorry i am answering so late, at first i wanted to add some
documentation before answering, but that turned out to be hard, and
then i've got too busy with other things:(, sorry.
but if you have any questions post them here and i'll do my best to answer them

Kevin O'Toole

unread,
Jul 27, 2015, 6:12:02 PM7/27/15
to Ajax.org Cloud9 Editor (Ace), joop.ri...@gmail.com
This feature was added in version 1.2.0

  editor.setOptions({
    indentedSoftWrap: true
  });
Reply all
Reply to author
Forward
0 new messages