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<div>
<br></div><div>[ meta.function.environment.tabular.latex ]</div><div>softWrap = false</div><div><br></div><div>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!</div>
<div><br></div><div>-Daniel Grady</div><div><br></div><div><br><div><br></div><div>The scope of a tabular environment is</div><div><br></div><div><div><div>text.tex.latex</div><div>meta.function.environment.general.latex</div>
<div>meta.function.environment.tabular.latex</div><div>meta.data.environment.tabular.latex</div><div>meta.row.environment.tabular.latex</div><div>meta.cell.environment.tabular.latex</div><div>attr.rev-path.tex.example.Documents.dgrady.Users</div>
<div>attr.os-version.10.6.8</div></div></div></div><div><br></div><div>Here is a short example that shows what I'm trying to accomplish:</div><div><br></div><div><div>\documentclass{article}</div><div><br></div><div>\begin{document}</div>
<div><br></div><div>This line should soft-wrap: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.</div><div><br></div><div>\begin{table}</div><div><br></div><div>\begin{tabular}{c}</div><div>
Lines inside the tabular environment should not soft wrap: Lorem ipsum dolor sit amet, consectetur.</div><div>\end{tabular}</div><div><br></div><div>\caption{The caption should soft wrap: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.}</div>
<div><br></div><div>\end{table}</div><div><br></div><div>\end{document}</div></div><div><br></div>