Jan Bares wrote:
> I would like to suggest new handy feature. Sometimes I have to directly edit
> the underlying XML/HTML represenation of data with another editor (XXE
> doesn't allow that). It would be nice if XXE can recognize, that the file
> was modified outside XXE and re-read it.
>
> Implementation:
> When the focus goes back to XXE from another application check the date of
> all files open in XXE. If the file is newer then it was when it was opened
> by XXE, the file was modified by another program. XXE will display something
> like: "<file name> was modified outside XXE. Do you want to realod it"?
> Yes/Yes to All/No/No to All.
I would rather suggest to use this macro to solve your problem:
---
<!-- ===============================================================
Use external editor to edit XML source of current document
and automatically reload it when done.
On Windows, replace emacs by the path to your favorite text editor.
(Mine is C:\emacs\bin\emacs!)
Make sure that this editor supports Unix-style newlines
and the encoding you have chosen for your XML documents.
================================================================= -->
<command name="editXMLSource">
<macro>
<sequence>
<command name="XXE.save" parameter="[ifNeeded]" />
<command name="run" parameter='emacs "%D"' />
<command name="XXE.open" parameter="[reopenIfNewer]" />
</sequence>
</macro>
</command>
<binding>
<keyPressed code="ESCAPE" />
<charTyped char="e" />
<command name="editXMLSource" />
</binding>
---
More info in http://www.xmlmind.com/xmleditor/user_faq.html#source_view