FSharp.Formatting


CodeFormat

Namespace: FSharp.CodeFormat

Exposes functionality of the F# code formatter with a nice interface

Static members

Static memberDescription
CreateAgent()
Signature: unit -> CodeFormatAgent

Returns a new instance of the agent that manages code formatting using the F# compiler service. The agent requires a reference to the 'FSharp.Compiler.dll' assembly. At the moment, the assembly is shared by all the instances of formatting agent!

FormatHtml(snippets, prefix)
Signature: (snippets:Snippet [] * prefix:string) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as HTML using the specified ID prefix and default settings.

FormatHtml(...)
Signature: (snippets:Snippet [] * prefix:string * openTag:string * closeTag:string * openLinesTag:string * closeLinesTag:string * addLines:bool * addErrors:bool) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as HTML The parameters specify prefix for HTML tags, whether lines should be added to outputs and whether errors should be printed.

FormatHtml(...)
Signature: (snippets:Snippet [] * prefix:string * openTag:string * closeTag:string * addLines:bool * addErrors:bool) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as HTML The parameters specify prefix for HTML tags, whether lines should be added to outputs and whether errors should be printed.

FormatHtml(...)
Signature: (snippets:Snippet [] * prefix:string * addLines:bool * addErrors:bool) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as HTML The parameters specify prefix for HTML tags, whether lines should be added to outputs and whether errors should be printed.

FormatLatex(snippets)
Signature: (snippets:Snippet []) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as LaTeX using the default settings.

FormatLatex(...)
Signature: (snippets:Snippet [] * openTag:string * closeTag:string * addLines:bool) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as LaTeX The parameters specify whether lines should be added to outputs.

FormatLatex(snippets, addLines)
Signature: (snippets:Snippet [] * addLines:bool) -> FormattedContent

Formats the snippets parsed using the CodeFormatAgent as LaTeX The parameters specify prefix for LaTeX tags, whether lines should be added to outputs.

Fork me on GitHub