EDIT AREA

管理画面から使えるMODxプラグインソースコードエディタ。
タグとか直打ちするのに色分けや行番号が表示されるので便利。
設定方法はDAICHIFIVE™ blogを参考に。(以下引用)

ダウンロードしたファイルを解凍して、/assets/plugins/edit_area となるように、サーバーに「edit_area」フォルダをアップロード。

管理画面からプラグインを新規作成。プラグイン名は「EditArea」とでもしておきましょう。プラグインコード欄に、 editarea.plugin.phpの内容をコピーしてペースト。設定タブのプラグイン設定欄に

&eadbg=Debug Enabled?;list;true,false;false &font_size=Font Size;list;8,9,10,11,12;9 &defaultHeight=Initialize editor height;list;300px,400px,500px,600px,700px;500px &min_height=Minimum editor height;list;200,300,400;400 &start_highlight=Initialize with highlighting enabled?;list;true,false;true &allow_toggle=Allow editor toggling?;list;true,false;true &allow_resize=Allow editor resizing?;list;y,n;y &fullscreen=Initialize editor in fullscreen mode?;list;true,false;false &replace_tab_with_spaces=Replace tab with spaces?;list;// No,/* Yes */;/* Yes */ &tab_as_spaces=How many spaces per tab?;list;3,4,5;4 &plugins=Active Plugins;string;modx

上記をコピーしてペースト。システムイベントタブでプラグインを作動させたい場面を選んで(下記参照)保存。

システムイベント
OnTempFormRender (テンプレート編集時)
OnChunkFormRender (チャンク編集時)
OnDocFormRender (ドキュメント編集時)
OnSnipFormRender (スニペット編集時)
OnPluginFormRender (プラグイン編集時)
OnModFormRender (モジュール編集時)

今回導入したのはPlugin EditArea 0.3.1のほう。

MODxを使うんだったら入れといたほうが後々楽。