ACE Editor

The ACE Editor field offers the ability to edit back-end code in an easy to use and easy to read embedded interface.  In addition to matching the features of native code editors, ACE offers real-time checking for code accuracy.



idstringRequiredUnique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringRequiredSubtitle display of the option, situated beneath the title.
descstringRequiredDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For ACE Editor field here we set value ace_editor
modestringOptionalSets the language mode of the editor. Default value is javascript .  Accepts: css html javascript  json less markdown mysql php plain_text sass scss text xml . For more detail visit:
defaultstringOptionalDefault value of the custom field.
themestringOptionalSets the theme of the editor.
Default value is solarized_dark. For more detail visit:
layoutstringOptionalUse the layout directive to specify the layout direction.
Default value is vertical
min_linestringOptionalMinimum value of lines in custom field.
Default value is 8
max_linestringOptionalMaximum value of lines in custom field.
Default value is 20
js_optionsstringOptionalArray values representing the Google JavaScript.

Example Declaration