-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regex doesn't work in syntax highlighting #364
Comments
I don't have the time to look at the regex, but I can tell you how to achieve your goal: AvalonEdit/ICSharpCode.AvalonEdit/Highlighting/Resources/VB-Mode.xshd Lines 24 to 30 in ed6f2b5
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 "" regex? |
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 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> Yes, I am not sure why you want to start the span on By setting foreground directly on the |
It's the color, &c = <red> |
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?
The text was updated successfully, but these errors were encountered: