Example #1
0
        private void btnApply_Click(object sender, EventArgs e)
        {
            _ScintillaControl sci      = new _ScintillaControl();
            _Lists            lst      = new _Lists();
            List <string>     WordList = lst.Text_To_List(scintilla1.Text, true, true, false);

            sci.HighlightWordList(selectedScintilla, WordList, HighlightColor, cbClearExisting.Checked);
        }
        /// <summary>Highlight List of Words in Scintilla Control</summary>
        /// <param name="sci">Scintilla Control Name</param>
        /// <param name="WordList">List of Words To Highlight</param>
        /// <param name="color">Color To Change List Words To</param>
        /// <param name="ClearHighlights">Option To Clear Previous Highlighting Before Adding New</param>
        public static void HighlightWordList(this Scintilla Sci, List <string> WordList, Color color, bool ClearHighlights = true)
        {
            _ScintillaControl sci = new _ScintillaControl();

            sci.HighlightWordList(Sci, WordList, color, ClearHighlights);
        }