Plugin generates a text with some control codes. Then it opens an internal editor and lets the user to modify the text. Finally, when the user closes the editor, the plugin reads the modified text and processes it in some way.
(Basically, what I described is much the same thing FRename plugin allows, so I know it is possible. I just don't know how to do it.)
Now, I would like to add one modification: I would like that editor window to color the text in a certain way, and perhaps respond to some special keystrokes - but ONLY for the text of my plugin.
For example, suppose the plugin read a list of selected files from the active panel and generated a batch file in the form of
Code: Select all
copy [filename_from_active_panel] [path_to_passive_panel]\[filename_from_active_panel]
1) When F8 is pressed, change "copy" to "move" (and back)
2) Display the "copy" lines in red and "move" lines in green
But only for my plugin's texts, not for a file the user opened in the editor.
It it possible to write a plugin which does this?