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();
}
}