fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
773 stars 194 forks source link

formatting code samples in markdown files (fsharp blocks) and <code> elements in xml comments? #2982

Open smoothdeveloper opened 1 year ago

smoothdeveloper commented 1 year ago

I propose fantomas goes where code formatters rarely go, for code that is most displayed to large audience: code documentation.

Pros

Cons

Extra information

Estimated cost (XS, S, M, L, XL, XXL): M or L

Related suggestions: (put links to related suggestions here)

Affidavit (please submit!)

nojaf commented 1 year ago

This seems like something some tool or script could do outside of Fantomas using Fantomas.Core.

Side note, FSharp.Formatting scripts can be formatted because they are just scripts.