PowerShellFormattingInfoFormatCode Method

Formats the specified source code.

Definition

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

Parameters

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

Return Value

Boolean
if formatting succeeded, or if custom formatting failed and the CodeFormatter should fall back to regular formatting.

Implements

ICustomFormattingInfoFormatCode(String, TextWriter)

See Also