Make HighlightingRule extensible so rules aren't required to use Regex #401
No reviewers
Labels
No labels
Area-Accessibility
Area-Build
Area-CodeCompletion
Area-Document
Area-Documentation
Area-Editing
Area-Folding
Area-Highlighting
Area-i18n
Area-Indentation
Area-NetFx
Area-Rendering
Area-Search
Area-Snippets
dependencies
duplicate
Feedback Needed
help wanted
invalid
Issue-Bug
Issue-Discussion
Issue-Enhancement
Issue-Performance
Issue-Question
on-hold
Resolution-Answered
Resolution-By Design
Resolution-Duplicate
Resolution-Fixed
Resolution-Won't Fix
Up-for-Grabs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-icsharpcode/AvalonEdit!401
Loading…
Reference in a new issue
No description provided.
Delete branch "GSonofNun/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added
IHighlightingRuleso developers can implement custom rules that don't use a simple regex pattern. As part of this, I had to make a simpleRuleMatchtype to replace the uses ofSystem.Text.RegularExpressions.Matchinstances as I needed a way for a custom implmentation to still return match results.Here's an example of a custom

IHighlightingRuleI needed: https://gist.github.com/GSonofNun/f5a97b24bb9d57c06c723a7bc02940a0This rule allows me to highlight delimiter separated values, giving a color to each column of values, and even lets me change the font weight and underline of certain lines.
I think these changes greatly expands the scope of possibilities for HighlightingRules.
Nice! Can this be used along with xshd files ?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.