<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I add subtle fold guides to TextMate using a relatively simple Bundle -> Language Grammar rule and It occurred to me that it might be possible to do the same for your request. Adding a grammar that matches only the characters after 80 number of characters, and highlight it as going past your limit.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Below is partially successful. It seems to me that my results are corrupted by some existing scopes. Once I disabled my Fold Guide Grammar the regexp results were dramatically improved. It’s still rubbish as far as commented lines go though. So, from that, I take it that it doesn’t play nice with other scopes, which will surely affect your milage. I tested on various different languages in TextMate and had good success with “Properties”, as it didn’t seem to add many scopes to my document.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">{<span class="Apple-tab-span" style="white-space:pre">       </span>patterns = ( { include = '#eightyCharacters'; } );</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">    </span>repository = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                </span>eightyCharacters = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                  </span>begin = '[\S\s\/\\\D\d\x\O]{80}';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                     </span>end = '$';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                    </span>patterns = (</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                          </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>match = '(.+)';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                       </span>captures = { 1 = { name = 'invalid.warning'; }; };</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                            </span>},</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                    </span>);</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">            </span>};</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">    </span>};</div><div id="bloop_customfont" style="margin: 0px;">}</div></div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Images (all taken with the 80 in the above code changed to 10 for dramatic effect)</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><a href="https://drive.google.com/file/d/0B-4RIorGTGCMRHA5UWg0V3FkRWc/view?usp=sharing"><span style="color: rgb(0, 0, 0);">JS with the language set to Properties (no/few extra scopes): https://drive.google.com/file/d/0B-4RIorGTGCMRHA5UWg0V3FkRWc/view?usp=sharing</span></a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><a href="https://drive.google.com/file/d/0B-4RIorGTGCMZGVVaXFFNHg1T1U/view?usp=sharing"><span style="color: rgb(0, 0, 0);">JS with fold guides enabled (extra scopes): https://drive.google.com/file/d/0B-4RIorGTGCMZGVVaXFFNHg1T1U/view?usp=sharing</span></a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><a href="https://drive.google.com/file/d/0B-4RIorGTGCMaHFSblp5aGNKTGs/view?usp=sharing"><span style="color: rgb(0, 0, 0);">JS without fold guides (standard JS scopes): https://drive.google.com/file/d/0B-4RIorGTGCMaHFSblp5aGNKTGs/view?usp=sharing</span></a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><a href="https://drive.google.com/file/d/0B-4RIorGTGCMWksyU2FVbXc3dEU/view?usp=sharing"><span style="color: rgb(0, 0, 0);">Screen shot of bundle editor on “Wrap Column Alert” (so you can see all the settings): https://drive.google.com/file/d/0B-4RIorGTGCMWksyU2FVbXc3dEU/view?usp=sharing</span></a></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">But now Im damned curious as to if there’s a way to do this better.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">For the curious my fold guides patterns are;</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">{<span class="Apple-tab-span" style="white-space:pre">       </span>patterns = (</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">          </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>include = '#leading-spaces'; },</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">               </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>name = 'meta.leading-tabs';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                   </span>begin = '^(?=\\t)';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                   </span>end = '(?=[^\\t])';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                   </span>patterns = (</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                          </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>match = '(\\t)(\\t)?';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                        </span>captures = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                          </span>1 = { name = 'meta.odd-tab'; };</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                               </span>2 = { name = 'meta.even-tab'; };</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                      </span>};</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                            </span>},</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                    </span>);</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">            </span>},</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">    </span>);</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">    </span>repository = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                </span>leading-spaces = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                    </span>begin = '^(?=\s\s)';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                  </span>end = '(?=[^\s\s|\\t])';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                      </span>patterns = (</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                          </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>match = '(\s\s)(\s\s)?';</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                      </span>captures = {</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                          </span>1 = { name = 'meta.odd-tab'; };</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                               </span>2 = { name = 'meta.even-tab'; };</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                                      </span>};</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                            </span>},</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">                    </span>);</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">            </span>};</div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">    </span>};</div><div id="bloop_customfont" style="margin: 0px;">}</div></div><div class="bloop_sign" id="bloop_sign_1421342785753952000"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div> <br><p style="color:#000;">On January 15, 2015 at 7:42:13 AM, Joseph Dan (<a href="mailto:josephdan@writeme.com">josephdan@writeme.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I like to use Soft Wrap. I also like to Use Window Frame as the Wrap Column. In other words, I like to wrap the text to the window.
<br>
<br>How can we, completely independent of this, display a vertical line at a given column?
<br>
<br>I can't do this with "Show Wrap Column" because it is connected to my Wrap Column setting. If I set that to 80, my Use Window Frame goes away.
<br>
<br>_______________________________________________
<br>textmate mailing list
<br>textmate@lists.macromates.com
<br>http://lists.macromates.com/listinfo/textmate
<br></div></div></span></blockquote></body></html>