MarkdownWriter.WriteCodeBlock Method
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Writes a block of code with optional language specifier.
public override void WriteCodeBlock(string code, string language = null)Parameters
codestring- The code to write.
languagestring optional- The language of the code block, or
nullto omit the language specifier.
Exceptions
- ArgumentNullException
- Thrown when
codeisnull.
