Skip to content
  1. Extras
  2. Ace
  3. System settings

System settings

Namespace: ace, area: general.

Where: Manage → System settings → filter by namespace ace.

On package upgrade existing values are not overwritten, except resolver logic for empty ace.snippets (see below).

Appearance and editor

KeyTypeDefaultDescription
ace.themetextfieldchromeAce theme: monokai, tomorrow_night, github, solarized_dark, … (full list in setting description)
ace.font_sizetextfield13pxFont size
ace.word_wrapcombo-booleanWrap long lines (also Alt+Z)
ace.soft_tabscombo-booleanYesSpaces instead of Tab character
ace.tab_sizetextfield4Tab width in spaces
ace.fold_widgetscombo-booleanYesFold controls on the gutter
ace.show_invisiblescombo-booleanNoSpaces, tabs, line endings
ace.heighttextfieldemptyEditor height in px; empty: default height
ace.growtextfieldemptyFit height to text: empty = off; number > 0 = max height; 0 = unlimited

Behavior

KeyTypeDefaultDescription
ace.auto_close_tagscombo-booleanYesAuto-close brackets, quotes, HTML/MODX tags
ace.draft_restorecombo-booleanNoDrafts in localStorage; offer restore after reload (7-day TTL)
ace.color_previewcombo-booleanNoTint #hex, rgb(), hsl() in CSS/HTML (capped at 2000 lines)
ace.html_elements_mimetextfieldemptyMIME for templates, chunks, and HTML resources. Empty: auto (text/x-smarty with Fenom pdoTools, text/x-twig with Twiggy, else text/html)
ace.snippetstextareaempty / defaultsTab snippets. On fresh install/upgrade, resolver writes defaults when empty
KeyRole for Ace
which_element_editorMust be Ace, or the plugin skips element forms
use_editorEnables RTE logic for resources (context value wins)
which_editorRTE name for resources. If not Ace and use_editor = Yes, Ace leaves #ta alone

Material-like theme example

MODX Ace Material Theme: tomorrow_night, font size, CSS plugin.