Method CreateCodeBlock
- Namespace
- Sisk.Documenting.Html
- Assembly
- Sisk.Documenting.Html.dll
CreateCodeBlock(string, string?)
Creates an HTML code block element from the provided code and language.
protected virtual HtmlElement? CreateCodeBlock(string code, string? language)
Parameters
codestringThe code to display in the code block.
languagestringThe programming language of the code, or null for no language highlighting.
Returns
- HtmlElement
The HTML element representing the code block, or null if no code is provided.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語