Dear list,
are there any mistakes?
is this useful to anybody?
Regards
Christof Lange
--------------------------------------------------
SWAPEDIT
--------
Arachne tool to switch between external and internal editor. You call
both editors with F4. Press ShiftF4 to select which one to use.
A. Installation:
1. First backup these files to a safe place:
\SYSTEM\GUI\TEXTEDIT.AH
\ARACHNE.CFG
\MIME.CFG
2. Write a new file with the name TEXTEDIT.ALT
<HTML><HEAD><TITLE>External Editor</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=file:extedit.dgi">
</HEAD><BODY><H2>Launching external editor...</H2></BODY>
</HTML>
Copy it to Arachne subdirectory \SYSTEM\GUI
3. Open the file \MIME.CFG and insert this line:
file/extedit.dgi |@call $esystem\\dgi\\extedit.bat $e $l|arachne
$l
4. Write a batchfile EXTEDIT.BAT:
@echo off
MY_EDITOR %2
%1
cd %1system
cd ..
put the command for your external editor in place of "MY_EDITOR"
and copy the file to Arachne subdirectory \SYSTEM\DGI
5. Write a batchfile SWAPEDIT.OOK
@ECHO off
copy \system\GUI\textedit.ah edit.tmp >nul
copy \system\GUI\textedit.alt \system\GUI\textedit.ah >nul
copy edit.tmp \system\GUI\textedit.alt >nul
copy nul edit.tmp >nul
and copy it to Arachne subdirectory \OOPS
3. Open the file \ARACHNE.CFG and change the line beginning
with ShiftF4 to:
ShiftF4 file://oops\swapedit.ook
B. Further customizing
There are editors which allow to load more than one file right
from the command line, for instance EDIT.COM from the MS-DOS packet.
This could be useful if you need the editor to cut and paste
- the contents of your bookmarks
- basic elements of HTML code
- from the Arachne Quickpad
- from other files used as clipboard
or printer output with other applications
So, you may consider to add more filenames to the command
in extedit.bat (see above step 4), for example:
@echo off
EDIT.COM %2 \HOTLIST.HTM \QUICKPAD.TXT \TAGS.HTM
%1
cd %1system
cd ..
Press ALT2 to cut and paste from your hotlist in the second window.
Press ALT3 to cut and paste from Arachne quickpad in the third window.
Press ALT4 to cut and paste from your commonly used HTML elements
in the fourth window. Press ALT1 to return to the current file.
- - - - - - - - - - - - - - - - - - - - -
[EMAIL PROTECTED]
http://www.volny.cz/christianpeace