Class CodeEditor
- Namespace
- Dynamicweb.CoreUI.Editors.Inputs
- Assembly
- Dynamicweb.CoreUI.dll
public class CodeEditor : EditorBase<string>
- Inheritance
-
CodeEditor
- Inherited Members
- Extension Methods
Properties
CodeLanguage
Gets or sets the code language that the editor should use for syntax highlighting.
public string CodeLanguage { get; set; }
Property Value
FilePath
Gets or sets the file path relative to /Files folder.
public string FilePath { get; set; }
Property Value
PluginOptions
The options passed to the register function of every plugin in Plugins.
public IDictionary<string, object> PluginOptions { get; init; }
Property Value
Plugins
The collection of plugins to load into the code editor. See CodeEditorPlugins for available standard plugins, or specify the path to a custom plugin, e.g., /Files/PlugIns/MyPlugIn.js.
public ICollection<string> Plugins { get; init; }
Property Value
ShowMinimap
Gets or sets a value indicating whether the minimap is shown. Turn it off for short editors.
public bool ShowMinimap { get; set; }
Property Value
ViewHeight
Gets or sets the editor's height in vh units. 0 (default) fills the height of the containing element instead of using a fixed size.
public int ViewHeight { get; set; }
Property Value
WordWrap
Gets or sets a value indicating whether long lines are wrapped instead of scrolled horizontally.
public bool WordWrap { get; set; }