Class CodeBlockSettings
Inheritance
System.Object
Syncfusion.EJ2.EJTagHelper
CodeBlockSettings
Namespace: Syncfusion.EJ2.BlockEditor
Assembly: Syncfusion.AspNetCore.BlockEditor.dll
Syntax
public class CodeBlockSettings : EJTagHelper
Constructors
CodeBlockSettings()
Declaration
public CodeBlockSettings()
Properties
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
| Type |
|---|
| Syncfusion.EJ2.MvcTemplate<System.Object> |
DefaultLanguage
Specifies the default language to use for syntax highlighting. This is the language that will be selected by default in the language selector dropdown.
Declaration
public string DefaultLanguage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "plaintext" |
Languages
Specifies the languages available for syntax highlighting. This is an array of objects, each containing a language value and a label.
Declaration
public object Languages { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The default value is null |