Edit

Share via


CodeBlock.CodeLanguage Property

Definition

Gets or sets the Language specified in prefix, e.g. ```c# (GitHub Style Parsing).

This does not guarantee that the Code Block has a language, or no language, some valid code might not have been prefixed, and this will still return null.

To ensure all Code is Highlighted (If desired), you might have to determine the language from the provided string, such as looking for key words.

public string CodeLanguage { get; set; }
member this.CodeLanguage : string with get, set
Public Property CodeLanguage As String

Property Value

Applies to