Beispiel #1
0
 /// <summary>
 /// Adds the given <paramref name="style"/> as resilient style. A resilient style is additionally available when highlighting is
 /// based on a syntax descriptor that has been derived from a XML description file. In the run of the highlighting routine
 /// the styles used by the FCTB are always dropped and replaced with the (initial) ones from the syntax descriptor. Resilient styles are
 /// added afterwards and can be used anyway.
 /// </summary>
 /// <param name="style">Style to add</param>
 public virtual void AddResilientStyle(Style style)
 {
     if (resilientStyles.Contains(style))
     {
         return;
     }
     currentTb.CheckStylesBufferSize(); // Prevent buffer overflow
     resilientStyles.Add(style);
 }