CodeFormatterFormatCode(String, TextWriter) Method

Formats the specified source code as HTML, writing the result to the specified TextWriter.

Definition

Namespace: Ookii.FormatC
Assembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
C#
public void FormatCode(
	string code,
	TextWriter writer
)

Parameters

code  String
The code to format.
writer  TextWriter
The TextWriter to write the formatted code to.

Example

For an example see CodeFormatter.

See Also