
Quick start
Ace in the manager in a few minutes.
Step 1. Install
- Install Ace via Extras → Installer (overview)
- Clear the MODX cache
- Ensure plugin Ace is active
Step 2. Editor for elements
System setting which_element_editor must be Ace.
Open a snippet, chunk, template, or plugin: the code field becomes Ace with highlighting.
Step 3. Code in resources
Behavior depends on use_editor and which_editor (context overrides are respected):
| Goal | Settings |
|---|---|
| Ace in content | use_editor = No or which_editor = Ace |
| TinyMCE / other RTE | use_editor = Yes, which_editor ≠ Ace; enable “Use Rich Text Editor” on the resource |
| Plain textarea without Ace | use_editor = Yes, which_editor ≠ Ace, richtext off on the resource |
Since 1.9.10 Ace does not replace #ta when another RTE is selected. Details: Integration.
Step 4. Verify
- Open a snippet: PHP highlighting is on
- Press Ctrl+Alt+H: shortcut table
- Type
getrand Tab: getResources template expands (iface.snippetsis set)
Checklist
- [ ]
which_element_editor = Ace - [ ] Snippets/chunks open in Ace
- [ ] Resource
use_editor/which_editormatch your setup - [ ] Theme and font size set under namespace
ace(settings)
Next steps
- System settings
- Integration: Tab snippets, Fenom/Twig mime, Ace TV
- Keyboard shortcuts
