EWSoftware / SHFB

Sandcastle Help File Builder (SHFB). A standalone GUI, Visual Studio integration package, and MSBuild tasks providing full configuration and extensibility for building help files with the Sandcastle tools.
Other
2.19k stars 369 forks source link

CodeBlockComponent: F# closing endregion comment tag included in rendered text. #1058

Closed JeffreySax closed 3 months ago

JeffreySax commented 5 months ago

This is similar to #428 but for F#.

F# does not have region directives. It uses // for end-of-line comments and (* *) for delimited comments.

Given MAML

<code language="f#" source="code.fs" region="sample" />

and the F# code in code.fs:

// #region sample
let x = 1
// #endregion

this renders:

let x = 1
//