Project Description A small .NET 2.0 Windows application.
SharePoint web part developers might love this utility.
Features - Converts HTML, CSS, JavaScript and other types of web content to C# code, mainly for use in the Render method of web parts;
- Set the name of the HtmlTextWriter instance;
- Choose between HtmlTextWriter only code and StringBuilder code;
- Copy result to clipboard.
Example
<div class="myCssClass">Hello World!</div>
converts to
writer.Write("<div class=\"myCssClass\">Hello World!</div>");
Text web content
Converted to C# code using only an HtmlTextWriter instance
Converted to C# code using only an HtmlTextWriter instance and a StringBuilder
Download HtmlTextWriter Utility v1.0