title: AvalonEdit (C#) Custom attributes in XSHD files
body: <p>I'm working on highlighting a small scripting language (that is not a derivative of any of the built in's) and I had a custom XML file setup for different syntax keywords and such.</p>
  
  <p>I would really like to use the XSHD system that exists in AvalonEdit for loading custom keywords, but I need to have custom attributes in them.</p>
  
  <p>So basically, after a lot of searching through the source code, I could not really pin-point the file that reads and specifies the keywords and rulesets.</p>
  
  <p>Does anyone here know where I can edit the needed class to read some custom attributes and storing them?</p>
  
  <p>I have all the XSHD and higlighting stuff in AvalonEdit down and working, so it's not using it that is the problem, per say, it's more the problem of using custom attributes in the keywords collection of the XSHD file.</p>
  
  <p>In example:</p>
  
  <pre><code>&lt;Keywords&gt;
     &lt;Word defaultValue="hello" requiresShader="shadertype1, shadertype2" someCustomAttr="value"&gt;wordname&lt;/word&gt;
  &lt;/Keyword&gt;
  </code></pre>
  
  <p>So, I need to set some custom properties to the parser of the XSHD file to load these custom attributes and store them in a custom class I have made that handles a few logical components that are crucial to what I'm trying to do.</p>
  
  <p>I already have a working parser that parses a XML file of all my keywords and their properties (but I wrote it to ScintillaNET, but found AvalonEdit afterwards, that works better with WPF and such).</p>
  
  <p>I will edit the original post with this information, sorry about possible misinformation.</p>
  
  <p>Thank you</p>