public override string ToXml()
        {
            string ret = "\t\t\t<Mark" + (previous ? "Previous" : "Following") + " ";

            ret += color.ToXml();
            if (markMarker)
            {
                ret += " markmarker=\"true\"";
            }
            ret += ">" + ReplaceXmlChars(what) + "</Mark" + (previous ? "Previous" : "Following") + ">\n\n";
            return(ret);
        }
        public override string ToXml()
        {
            StringBuilder ret = new StringBuilder("\t\t\t<KeyWords name=\"");

            ret.Append(ReplaceXmlChars(name));
            ret.Append("\" ");
            ////ret += color.ToXml() + ">\n";
            ret.Append(color.ToXml());
            ret.Append(">\n");
            foreach (string str in words)
            {
                ////ret += "\t\t\t\t<Key word=\"" + ReplaceXmlChars(str) + "\"/>\n";
                ret.Append("\t\t\t\t<Key word=\"");
                ret.Append(ReplaceXmlChars(str));
                ret.Append("\"/>\n");
            }
            ////ret += "\t\t\t</KeyWords>\n\n";
            ret.Append("\t\t\t</KeyWords>\n\n");
            return(ret.ToString());
        }
Exemple #3
0
        public override string ToXml()
        {
            string ret = "";

            ret = "\t\t\t<Span name=\"" + ReplaceXmlChars(name) + "\" ";
            if (noEscapeSequences)
            {
                ret += "noescapesequences=\"true\" ";
            }
            if (rule != "")
            {
                ret += "rule=\"" + ReplaceXmlChars(rule) + "\" ";
            }
            ret += "stopateol=\"" + stopEOL.ToString().ToLower() + "\" ";
            ret += color.ToXml();
            ret += ">\n";

            ret += "\t\t\t\t<Begin ";
            if (beginColor != null && !beginColor.NoColor)
            {
                ret += beginColor.ToXml();
            }
            ret += ">" + ReplaceXmlChars(begin) + "</Begin>\n";

            if (end != "")
            {
                ret += "\t\t\t\t<End ";
                if (endColor != null && !endColor.NoColor)
                {
                    ret += endColor.ToXml();
                }
                ret += ">" + ReplaceXmlChars(end) + "</End>\n";
            }
            ret += "\t\t\t</Span>\n\n";
            return(ret);
        }
Exemple #4
0
 public override string ToXml()
 {
     return("\t<Digits name=\"Digits\" " + highlightColor.ToXml() + "/>\n\n");
 }