ILSpy
ILSpy copied to clipboard
Support for Different Syntax Themes
I think it would be nice to be able to change the syntax highlighting colors and font weights. For example, I'd like to have the highlighting like the one in Visual Studio.
Solution draft:
- folder "SyntaxThemes" beneath ilspy.exe location
- for each embedded syntax theme ("embedded-lang-theme.xshd"):
- one template designated by ".template" extension located by default in that folder, so user has a copy-paste template available to them
- naming convention based discovery: "embedded-lang-theme.customname.xshd"
- discovered themes are placed in a separate drop-down (Options dialog) per embedded language theme, eg C#. One entry is always shown, "(default)" which of course is the embedded theme.
- on load of a custom theme, verify its validity - if invalid, show dialog to user and revert to embedded default.
The alternative solution would be to re-map the colors of the existing .xshd file, without having to duplicate the whole highlighting scheme. https://github.com/icsharpcode/SharpDevelop/blob/3f3ae2a5d4ffafd98cdf1c09308b9b8d93b0356c/src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/SyntaxHighlighting/CustomizingHighlighter.cs