Skip to content

Ace Field

The code editor that ships with MODX, embedded in a block. For a fragment of markup, a config, a piece of a template.

The type appears only if MODX provides Ace

It is added to the list when the manager exposes the Ace component. On an installation without it the type is absent.

No settings of its own beyond the common ones. The height is fixed at 300 pixels, syntax highlighting is fixed to the template mode, and MODX tag highlighting is on.

Output is the text you typed, unchanged:

html
{$snippet}

Deliberately kept away from the translators

Unlike Text and Textarea, this type is not offered for machine translation, and it does not supply a title in the moderation queue. It holds code, and a translation would ruin it.

© PageBlocks 2019-present