# CHANGE COLORS IN WPF EDITOR?

**URL:** <https://forum.alternetsoft.com/t/change-colors-in-wpf-editor/106>\
**Category:** AlterNET Studio Support\
**Tags:** wpf, editor\
**Created:** [September 8, 2019, 12:00am UTC](https://forum.alternetsoft.com/t/change-colors-in-wpf-editor/106 "2019-09-08T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucid.dion](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/lucid.dion/32/71_2.png) [@lucid.dion](https://forum.alternetsoft.com/u/lucid.dion)\
**Post date:** [September 8, 2019, 12:00am UTC](https://forum.alternetsoft.com/t/change-colors-in-wpf-editor/106/1 "2019-09-08T00:00:00Z")

</div>

Is there any documentation or simplified example on how to change the colors of the various items in the WPF Roslyn-powered editor? I did see the sample project but am checking if I can avoid parsing through thousands of lines of code in order to just figure out how to change the editor colors.

---

<div class="post-metadata">

**Author:** ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)\
**Post date:** [September 9, 2019, 12:00am UTC](https://forum.alternetsoft.com/t/change-colors-in-wpf-editor/106/2 "2019-09-09T00:00:00Z")

</div>

Please take a look at Customize Quick Start project and change Color Theme to Dark on Font and Colors tab of Customize Dialog box - you can see how colors of various text fragments are changed.  
The code to change lexical styles, line numbers, modificators, etc. is located in this sample, method ApplyToEdit of SyntaxSettings class.  
Let me know if it helps.  
Regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![lucid.dion](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/lucid.dion/32/71_2.png) [@lucid.dion](https://forum.alternetsoft.com/u/lucid.dion)\
**Post date:** [September 10, 2019, 12:00am UTC](https://forum.alternetsoft.com/t/change-colors-in-wpf-editor/106/3 "2019-09-10T00:00:00Z")

</div>

Thanks I was able to narrow it down. For anyone else wanting to do the same thing, look at the parser's Scheme.Styles property. This gives you the list of ILexStyle instances that contain Name and Foreground, among other things.
