event DocumentChanged(sFile)

Called when the file buffer is edited by the user. This event is handled asynchronously. That is, it is not called as the user is typing. It is called after a moment of idleness. This allows you edit the file inside this event handler. Note because this function is called asynchronously, it is possible the sFile file may not be open.