MODx is a nice opensource CMS and PHP framework. A very annoying thing when using it is that you edit templates, code snippets, etc. in a small textarea. Of course it's really dirty, so I think everyone like me uses his favourite text editor, and paste into the textarea.
This process believe me is time-consuming and boring, you have to try it. So here it is what I'd like to have:
an AutoHotKey script which triggers when I press a hotkey: I press it when there is a textarea in the browser, in a MODx manager instance, and I want that the actions taken are:
Ok then I make my changes to the file, and when I'm done I press another hotkey, so that the actions taken by the script are:
That's all, isn't it useful? The MODx community would rejoice... Btw it could be easily adapted to whatever CMS out there, if needed.
This process believe me is time-consuming and boring, you have to try it. So here it is what I'd like to have:
an AutoHotKey script which triggers when I press a hotkey: I press it when there is a textarea in the browser, in a MODx manager instance, and I want that the actions taken are:
- copy the text found in the textarea into the clipboard
- make a temporary file somewhere with .php extension
- load this file into my favourite text editor (which will syntax-highlight the code because we've set the right extension for it)
Ok then I make my changes to the file, and when I'm done I press another hotkey, so that the actions taken by the script are:
- save the file (Ctrl-S, or other user defined keystrokes, depending on the text editor... hey it's a script, so I can easily modify it by myself ;)
- copy the text into the textarea in the browser, where the MODx manager instance is
- optional, for the very lazy: submit the changes pressing the "save" button for me into the MODx manager interface :)
That's all, isn't it useful? The MODx community would rejoice... Btw it could be easily adapted to whatever CMS out there, if needed.


)