Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
XamSyntaxEditor help required to highlight custom words
posted

Dear Support Team,

 In my company we are using the XamSyntaxEditor to represent our own custom language which contains the following keywords:

"Base"

"Using"

and so on. 

Now, what we are trying to do in addition is to highlight the keywords with a color (for example blue color). Therefore I need your assistant to figure out how to do this with XamSyntaxEditor.

Note: Preferably, we do not want to change the control.

Parents
  • 34810
    Offline posted

    Hello Tomas,

    If you have configured your custom language file to associate the words “Base” and “Using” as keywords, you can modify their appearance by using a ClassificationAppearanceMap entry. There is a documentation article for this on our website, here.

    If you have installed the Infragistics for WPF Samples Browser, there is also a sample there that may help you. In the samples tree, navigate to XamSyntaxEditor => Display => Highlighting Customization.

    Please let me know if you have any other questions or concerns on this matter.

Reply Children