Alsing.SourceCode.SyntaxDocumentExporters.SimpleHTMLExporter.Export C# (CSharp) Method

Export() public static method

public static Export ( SyntaxDocument doc, string CssClass ) : string
doc SyntaxDocument
CssClass string
return string
        public static string Export(SyntaxDocument doc, string CssClass)
        {
            sb = new StringBuilder();
            doc.ParseAll(true);

            Out("<div class=\"" + CssClass + "\">" + Environment.NewLine);
            foreach (Row r in doc)
            {
                foreach (Word w in r)
                {
                    write(w.Text, w.Style);
                }

                Out("<br>" + Environment.NewLine);
            }
            Out("</div>");

            return sb.ToString();
        }
    }