private static ScintillaNet.Configuration.KeyWordConfigList GetKeywords(XmlElement xDocEle)
        {
            ScintillaNet.Configuration.KeyWordConfigList keywords = new ScintillaNet.Configuration.KeyWordConfigList();

            foreach (XmlElement xKeyword in xDocEle.GetElementsByTagName("Keywords"))
            {
                int      listNum = 0;
                bool     inherit = false;
                string[] words   = xKeyword.InnerText.Split(new char[] { ' ', '\t', '\r', '\n', });

                XmlAttributeCollection xAttribs = xKeyword.Attributes;
                foreach (XmlAttribute xAttrib in xAttribs)
                {
                    if (xAttrib.Name == "List")
                    {
                        if (int.TryParse(xAttrib.Value, out listNum) == false)
                        {
                            listNum = 0;
                        }
                    }
                    else if (xAttrib.Name == "Inherit")
                    {
                        inherit = xAttrib.Value.ToLower().Trim() == "true";
                    }
                }

                ScintillaNet.Configuration.KeyWordConfig keyword = new ScintillaNet.Configuration.KeyWordConfig(listNum, xKeyword.InnerText, inherit);
                keywords.Add(keyword);

                //foreach (string word in words)
                //{
                //    if (string.IsNullOrEmpty(word) == false)
                //    {
                //        ScintillaNet.Configuration.KeyWordConfig keyword = new ScintillaNet.Configuration.KeyWordConfig(listNum, word, inherit);
                //        keywords.Remove(keyword);
                //        keywords.Add(keyword);
                //    }
                //}
            }

            return(keywords);
        }
        private static ScintillaNet.Configuration.KeyWordConfigList GetKeywords(XmlElement xDocEle)
        {
            ScintillaNet.Configuration.KeyWordConfigList keywords = new ScintillaNet.Configuration.KeyWordConfigList();

            foreach (XmlElement xKeyword in xDocEle.GetElementsByTagName("Keywords"))
            {
                int listNum = 0;
                bool inherit = false;
                string[] words = xKeyword.InnerText.Split(new char[] { ' ', '\t', '\r', '\n', });

                XmlAttributeCollection xAttribs = xKeyword.Attributes;
                foreach (XmlAttribute xAttrib in xAttribs)
                {
                    if (xAttrib.Name == "List")
                    {
                        if (int.TryParse(xAttrib.Value, out listNum) == false)
                            listNum = 0;
                    }
                    else if (xAttrib.Name == "Inherit")
                    {
                        inherit = xAttrib.Value.ToLower().Trim() == "true";
                    }
                }

                ScintillaNet.Configuration.KeyWordConfig keyword = new ScintillaNet.Configuration.KeyWordConfig(listNum, xKeyword.InnerText, inherit);
                keywords.Add(keyword);

                //foreach (string word in words)
                //{
                //    if (string.IsNullOrEmpty(word) == false)
                //    {
                //        ScintillaNet.Configuration.KeyWordConfig keyword = new ScintillaNet.Configuration.KeyWordConfig(listNum, word, inherit);
                //        keywords.Remove(keyword);
                //        keywords.Add(keyword);
                //    }
                //}
            }

            return keywords;
        }