This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

CodeBlockNode Pennington.ApiMetadata

Fenced code block from a <code> element.

Properties

Language string
Language identifier used by the code fence (e.g. csharp).
Text string
The code content with leading indentation stripped.

Constructors

CodeBlockNode

#
public CodeBlockNode(string Language, string Text)

Fenced code block from a <code> element.

Parameters

Language string
Language identifier used by the code fence (e.g. csharp).
Text string
The code content with leading indentation stripped.

Pennington.ApiMetadata.CodeBlockNode

namespace Pennington.ApiMetadata;

/// Fenced code block from a <code> element.
public record CodeBlockNode
{
    /// Fenced code block from a <code> element.
    
public CodeBlockNode(string Language, string Text)
; /// Language identifier used by the code fence (e.g. csharp).
public string Language { get; set; }
/// The code content with leading indentation stripped.
public string Text { get; set; }
}