fsprojects / fantomas

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

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

Open smoothdeveloper opened 8 months ago

smoothdeveloper commented 8 months 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 8 months 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.