[TxMt] [TM2] Turn of soft wrap for LaTeX tables?

Daniel Grady d.c.grady at gmail.com
Mon Jan 23 18:51:43 UTC 2012

The default settings for TextMate 2 have soft wrapping turned on for text
scopes. When I'm editing a LaTeX document (text.tex.latex), this is fine,
except for tables. Inside of tabular environments I've usually got the
columns lined up so it's easier to read the source file, but when soft
wrapping is turned on this just becomes a huge mess. I thought it would be
possible to turn soft wrap off inside tables through the .tm_properties
file, and I tried adding this rule

[ meta.function.environment.tabular.latex ]
softWrap = false

but this doesn't seem to do anything. Do scope selectors work the same way
in .tm_properties as elsewhere? Does anyone have a suggestion for this,
short of altering the LaTeX bundle? Thanks for any help!

-Daniel Grady

The scope of a tabular environment is


Here is a short example that shows what I'm trying to accomplish:



This line should soft-wrap: Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor.


Lines inside the tabular environment should not soft wrap: Lorem ipsum
dolor sit amet, consectetur.

\caption{The caption should soft wrap: Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod.}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20120123/ccfe923c/attachment.html>

More information about the textmate mailing list