Highlighting only between brackets?
Submitted by Monday, 20 September, 2004 - 13:10
on
Hello,
I wonder if it is possible to restrict literal highlighting to
space between brackets.
I tried to solve my problem with reg-expressions but it
did not work.
example:
In the following lines I want to apply the literal
highlighting (everything between ' and ' should be highlighted)
within the brackets:
options = ('option1 ', 'option2 ', 'option3 ', parameter)
matrix = [ 'sting1' ; 'string2' ]
But I do NOT want to have the highlighting applied in lines like this:
result = a'*b/c'
Does anybody has an idea how to solve this problem?
Is there a simple way to apply literal highlighting only
within brackets? To nest span rules?
Thanks a lot
I wonder if it is possible to restrict literal highlighting to
space between brackets.
I tried to solve my problem with reg-expressions but it
did not work.
example:
In the following lines I want to apply the literal
highlighting (everything between ' and ' should be highlighted)
within the brackets:
options = ('option1 ', 'option2 ', 'option3 ', parameter)
matrix = [ 'sting1' ; 'string2' ]
But I do NOT want to have the highlighting applied in lines like this:
result = a'*b/c'
Does anybody has an idea how to solve this problem?
Is there a simple way to apply literal highlighting only
within brackets? To nest span rules?
Thanks a lot