Hello all,
One thing I found useful in BBEdit was the ability to show the pinstripe column markers -- I find this invaluable as a guide when coding in python, where indentation is critical. Might this be a feature that you all would find useful?
JP
Hi James,
It's been a few years since I've used BBEdit so forgive me if I'm talking about the wrong thing... You should look at the SubtleGradient themes shown in the TM Wiki. These have striped columns for leading whitespace.
http://macromates.com/wiki/Themes/UserSubmittedThemes
--Andrew Vit
On Jun 6, 2007, at 8:32 AM, James Perry wrote:
Hello all,
One thing I found useful in BBEdit was the ability to show the pinstripe column markers -- I find this invaluable as a guide when coding in python, where indentation is critical. Might this be a feature that you all would find useful?
JP
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Note: that only works in a few languages. ASP.net, Prototype Javascript & Ruby Experimental. It's super-easy to add to almost anything else though. I'll probly add it as an injected scope option somehow in TM2.0 thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
On Jun 7, 2007, at 10:12 AM, Andrew Vit wrote:
Hi James,
It's been a few years since I've used BBEdit so forgive me if I'm talking about the wrong thing... You should look at the SubtleGradient themes shown in the TM Wiki. These have striped columns for leading whitespace.
http://macromates.com/wiki/Themes/UserSubmittedThemes
--Andrew Vit
On Jun 6, 2007, at 8:32 AM, James Perry wrote:
Hello all,
One thing I found useful in BBEdit was the ability to show the pinstripe column markers -- I find this invaluable as a guide when coding in python, where indentation is critical. Might this be a feature that you all would find useful?
JP
On Jun 6, 2007, at 10:32 AM, James Perry wrote:
Hello all,
One thing I found useful in BBEdit was the ability to show the pinstripe column markers -- I find this invaluable as a guide when coding in python, where indentation is critical. Might this be a feature that you all would find useful?
Perl has it built in (meta.leading-tabs, meta.odd-tab, meta.even-tab).
I am also using it in Objective-C, using the syntax below which itself includes the Objective-C syntax. That recipe could probably be used for other languages as well. It works fine with hard tabs, for soft tabs it assumes 4-char wide tabs.
Gerd
{ scopeName = 'source.objc.gerd'; fileTypes = ( 'm', 'h' ); foldingStartMarker = '(?x) /**(?!*) |^(?![^{]*?//|[^{]*?/*(?!.*?*/.*?{)).*?{\s*($|//|/*(?!.*?*/.* \S)) '; foldingStopMarker = '(?<!*)**/|^\s*}|^@end\b'; patterns = ( { name = 'comment.line.double-slash.c++'; begin = '^(//)'; end = '$\n?'; beginCaptures = { 0 = { name = 'meta.comment.full-line.c++'; }; 1 = { name = 'punctuation.definition.comment.objc'; }; }; endCaptures = { 0 = { name = 'meta.comment.full-line.c++'; }; }; patterns = ( { name = 'punctuation.separator.continuation.c++'; match = '(?>\\s*\n)'; }, ); contentName = 'meta.comment.full-line.c++'; }, { name = 'meta.leading-tabs'; begin = '^(?=(\t| {4}))'; end = '(?=[^\t\s])'; patterns = ( { match = '(\t| {4})(\t| {4})?'; captures = { 1 = { name = 'meta.odd-tab'; }; 2 = { name = 'meta.even-tab'; }; }; }, ); }, { include = 'source.objc'; }, ); }