PowerShellFormattingInfoFormatCode Method
Formats the specified source code.
Namespace: Ookii.FormatCAssembly: Ookii.FormatC (in Ookii.FormatC.dll) Version: 2.3.2+a0abe9e363271833c90424d1444b43a67fa5858f
public bool FormatCode(
string code,
TextWriter writer
)
Public Function FormatCode (
code As String,
writer As TextWriter
) As Boolean
public:
virtual bool FormatCode(
String^ code,
TextWriter^ writer
) sealed
abstract FormatCode :
code : string *
writer : TextWriter -> bool
override FormatCode :
code : string *
writer : TextWriter -> bool
- code String
- The code to format.
- writer TextWriter
- The TextWriter to write the formatted code too.
Boolean if formatting succeeded, or
if custom formatting
failed and the
CodeFormatter should fall back to regular formatting.
ICustomFormattingInfoFormatCode(String, TextWriter)