[TxMt] [TM2] Indented soft-wrap

18 views
Skip to first unread message

Megan Nix Nissen

unread,
Mar 19, 2012, 3:09:38 PM3/19/12
to TextMate users
I have tried everything mentioned in this thread and still cannot get soft-wrap to work in markdown files on indented lines. Really, everything. Soft-wrap works for lists, headers, and regular (un-indented) lines. It is definitely enabled in the View menu. Please advise.

Thanks,
--
Megan Nix Nissen
Techcycled
Recycled technology transformed into artisan jewelry, accessories, and unique gifts; green, eco-friendly geekery.

Megan Nix Nissen

unread,
Mar 22, 2012, 3:53:58 PM3/22/12
to TextMate users
Please, any help would be much appreciated! I have a large number of files with this problem, and I am at my wit's end. :/

Oops, I also forgot to link the relevant thread -- here it is:
http://old.nabble.com/Indented-soft-wrap-tt32983136.html

The solutions posted there seemed to work flawlessly for others, so I am baffled as to why none of them work for me.

Thanks,
 Megan

Adam Sharp

unread,
Mar 23, 2012, 8:46:10 PM3/23/12
to TextMate users
On 3/19/12 12:09 PM, Megan Nix Nissen wrote:

I have tried everything mentioned in this thread and still cannot get soft-wrap to work in markdown files on indented lines. Really, everything. Soft-wrap works for lists, headers, and regular (un-indented) lines. It is definitely enabled in the View menu. Please advise.

I'm assuming this is what you're after:


I achieved that with the following:

1. In the Text bundle > Settings > Raw, change "{ softWrap = :false; }" to "{ softWrap = :true; }".
2. Add the following Settings item to the Markdown bundle, scoped to markup.raw.block.markdown:

{ indentedSoftWrap = {
format = '${0/\S/ /g}';
match = '\A\s+';
};
}

Call it something like "Indented Soft Wrap: Raw Block".

Hope that helps,

Adam

Megan Nix Nissen

unread,
Mar 24, 2012, 12:17:39 PM3/24/12
to TextMate users
It works, hooray! Thanks!

- Megan
_______________________________________________
textmate mailing list
text...@lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Reply all
Reply to author
Forward
0 new messages