Page tree
Skip to end of metadata
Go to start of metadata

BasicTextCodeFieldDefinition renders a text area that highlight the typed text and perform auto-completion based on a desired language (Java, Groovy, HTML,....).

Class: info.magnolia.ui.form.field.definition.BasicTextCodeFieldDefinition

Here is an example text code field that highlight the input text in a Java style.

 

Node nameValue

 java

 

 class

info.magnolia.ui.form.field.definition.BasicTextCodeFieldDefinition

         languagejava
         labelJava Code

You can use all common field properties and the following:

PropertyDescriptionDefault
languageStyle used to highlight the entered text/code.text

Supported Language Style:

abap, asciidoc, c_cpp, c9search, clojure, coffee, coldfusion, csharp, css, curly, dart, diff, django, dot, glsl, golang, groovy, haml, haxe, html, jade, java, javascript, json, jsp, jsx, latex, less, liquid, lisp, livescript, lua, luapage, markdown, objectivec, ocaml, perl, pgsql, php, powershell, python, r, rdoc, rhtml, ruby, scad, scala, scheme,scss, sh, sql, stylus, svg, tcl, tex, text, textile, tm_snippet, typescript, xml, xquery, yaml;

 

  • No labels

1 Comment

  1. Is the screenshot correct?