Header menu logo FSharp.Formatting

CodeFormat Type

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

Static members

Static member Description

CodeFormat.FormatFsx(snippets)

Full Usage: CodeFormat.FormatFsx(snippets)

Parameters:
Returns: FormattedContent

Formats the .fsx snippets as iPython notebook using the default settings.

snippets : Snippet seq
Returns: FormattedContent

CodeFormat.FormatHtml(snippets, prefix, ?openTag, ?closeTag, ?lineNumbers, ?openLinesTag, ?closeLinesTag, ?addErrors, ?tokenKindToCss)

Full Usage: CodeFormat.FormatHtml(snippets, prefix, ?openTag, ?closeTag, ?lineNumbers, ?openLinesTag, ?closeLinesTag, ?addErrors, ?tokenKindToCss)

Parameters:
    snippets : Snippet array
    prefix : string
    ?openTag : string
    ?closeTag : string
    ?lineNumbers : bool
    ?openLinesTag : string
    ?closeLinesTag : string
    ?addErrors : bool
    ?tokenKindToCss : TokenKind -> string

Returns: FormattedContent

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

snippets : Snippet array
prefix : string
?openTag : string
?closeTag : string
?lineNumbers : bool
?openLinesTag : string
?closeLinesTag : string
?addErrors : bool
?tokenKindToCss : TokenKind -> string
Returns: FormattedContent

CodeFormat.FormatLatex(snippets, ?openTag, ?closeTag, ?lineNumbers)

Full Usage: CodeFormat.FormatLatex(snippets, ?openTag, ?closeTag, ?lineNumbers)

Parameters:
    snippets : Snippet array
    ?openTag : string
    ?closeTag : string
    ?lineNumbers : bool

Returns: FormattedContent

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

snippets : Snippet array
?openTag : string
?closeTag : string
?lineNumbers : bool
Returns: FormattedContent

Type something to start searching.