Open NotroDev opened 2 years ago
I don't have the time to look at the regex, but I can tell you how to achieve your goal:
This matches "" as it's own nested span.
Hope this helps.
I don't have the time to look at the regex, but I can tell you how to achieve your goal:
This matches "" as it's own nested span.
Hope this helps.
Thanks, but I really can't get it to work. Where should I do this? What should I change in "
I am not yet sure what you are trying to achieve... Can you post a screenshot of what the colors and text should look like? Thanks!
I am not yet sure what you are trying to achieve... Can you post a screenshot of what the colors and text should look like? Thanks!
Hey, It should be like this
// Maybe I could somehow do "end on LAST quot" regex/something else?
// Maybe I could somehow do "end on LAST quot" regex/something else?
Hmm... It was probably a good idea!
I will post a working example of what I had in mind in the evening.
I am not sure if I understand your use-case correctly, but this is what I would have used:
<?xml version="1.0"?>
<SyntaxDefinition name="Custom Highlighting" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="String" foreground="Blue" />
<RuleSet>
<Span color="String">
<Begin foreground="Red">"</Begin>
<End foreground="Red">"</End>
<RuleSet>
<Span begin="""" end="" foreground="Orange" />
</RuleSet>
</Span>
</RuleSet>
</SyntaxDefinition>
Example:
Yes, I am not sure why you want to start the span on (&[clkmno])+
By setting foreground directly on the Begin
and End
attributes of Span
you can customize the color directly.
Yes, I am not sure why you want to start the span on (&[clkmno])+
It's the color, &c = \
Hey.
Oh my god, it was 24 days!
I returned to my project and I need to reopen this 😢
When I get the idea to get the last quote, I didn't think of one situation: two or more ""
.
It breaks completely in it...
I can't use your solution. E.g. &c
is the color code, and in my editor it previews it.
Hi. I have this regex: https://regex101.com/r/P3WGak/1 And everywhere it works, but not in syntax highlighting. I have this:
And, as you can see: It doesn't work. Why?