4

I'm using the ICSharpCode.TextEditor and want to change the syntax colors... in the namespace

ICSharpCode.TextEditor.Document

there is the

public class HighlightColor

but I don't know how to give new colors to the editor. Somebody there, who knows how to do this or where I can find a documentation for that editor control?

Thank you.

zee
  • 661
  • 1
  • 10
  • 26

1 Answers1

5

The syntax highlighting in ICSharpCode.TextEditor is determined by the syntax highlighting definition (.xshd file) used for the highlighting.

See http://wiki.sharpdevelop.net/Syntax highlighting.ashx for a description of the file format and how to load it into the text editor.

If you download the SharpDevelop source code, you can find the existing highlighting definitions in SharpDevelop\src\Libraries\ICSharpCode.TextEditor\Project\Resources.

Daniel
  • 15,944
  • 2
  • 54
  • 60