Hi everyone ! I’m trying to do my own syntax but there is something I don’t really understand:
How do you make nested include without using begin/end with patterns ?
For exemple because I always explain not very well, if I place in my repository the object A and B, how I’m supposed to do for highlight A or with B if it follows A ? Here’s the code that I thought correct for doing that.
Nested Include Syntax
Have you considered using the “new” sublime-syntax format? Here is the official documentation, which may help you: http://www.sublimetext.com/docs/3/syntax.html
There aren’t solution with the “old” ? And what’s the solution for this exemple with the new ?
I don’t want to create a new file in YAML, a language I don’t know Just tell me a solution with patterns or something like that please
I don’t understand your question. Please explain what you want to do, preferably with your particular example.
(I won’t be back until Monday, but maybe others can work with that information.)
Thanks for your reply I want to know what I need to write for highlight B objects only if they have an A object juste before
Please give a concrete example of what you have and what you want to happen. This makes it so much easier for us to understand what you really need.
I don’t understand as well. But I’m guessing the question is asking for a highlight repeat selection like what
Ctrl+D
does, - But that it searches up instead of down??
Another easier answer might just be to do something like:
Ctrl+F, “>[a-zA-Z]</”, Alt+Enter
?
Ok, I’ll try to be understood.
I place in my repository the object “A” which contains “i”, the object “B” which contains “love” and the object “C” which contains “potatoes”.
With these elements, I try to highlight the sentence “I love potatoes” but the trick is that the sentence can be match while one or two of the lasts words are forgotten.
Sentences which should work:
- i
- i love
- i love potatoes
All other ways don’t match
No one knows what you are talking about, if you can’t bother to explain the problem no one is going to help you.