On 21. Jan 2007, at 12:52, frank waldheim wrote:
hi there, sorry if this question was asked before, but i am new to the list and did not found something like that in the archive.
i would love to have highlightPairs for ruby in such a way that:
{ highlightPairs = ( ( 'def', 'end' ), ( 'def', 'return' ), ( 'class', 'end' ), ( 'begin', 'end' ), ( 'if', 'end' ), ( 'if', 'else' ), ( 'else', 'end' ), ); }
would render a result. but as the documentation states the mechanism of highlightPairs is restricted to 'characters'. now obviously we do not have (use) braces and such for blocks in ruby. my question is: how can i implement a mechanism which tells me my current scope.
I am not entirely sure how you want to be told about your current scope, and how you define it.
Would indent not provide a visual cue as to which level which lines belong to?