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 : seq<Snippet>
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[]
    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[]
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[]
    ?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[]
?openTag : string
?closeTag : string
?lineNumbers : bool
Returns: FormattedContent