wv-field-code

Purpose

<wv-field-code/>. Renders a specialized editor - ace editor in order to make code submission much easier.

Properties

Important: All <wv-field-*> helpers inherit a "base tag helper" properties. In the following list are presented only the properties that this tag helper adds or alters. Not all base tag helper properties can be implemented by this tag helper too.

name description
height

object type: string

default value: 160px

is required: FALSE

Will be set as height style to the editor wrappe

language

object type: string

default value: razor

is required: FALSE

Code highlighting is based on the language selection. Almost all modern languages are supported. Check the editor's kitchen sink for reference

theme

object type: string

default value: razor

is required: FALSE

Code highlighting theme. Check the editor's kitchen sink for reference

Example

<wv-field-code value="@codeSnippet" language="css"></wv-field-code>