Glenn McCorkle wrote:
>
> > [And if that is possible, shouldn't it be possible for Arachne to have a
> > built-in feature where we hit a hotkey and the header is changed from
> > text/plain to text/html?]
>
> > dumb question? maybe ... but at least I thought to ask it. <G>
>
> No, it's not a dumb question.
> In your example (html sent as text/plain), here's how to do it.
>
> After the page has completed downloading
> 1) Alt+E to a Dos prompt
> 2) change this line in mime.cfg
> old......
> text/plain TXT
>
> new......
> text/plain HTM
Why not have TWO versions of mime.cfg ?
One could have the standard mime mappings and the other could have
alternatives for MANY mime types. <g>
Then shiftF10 (say) could be programmed to swap them by:
shiftF10 file:mimeswap.ook
MIMESWAP.ook:
@ECHO off
if exist mime.tmp del mime.tmp
ren mime.cfg mime.tmp
ren mime.new mime.cfg
ren mime.tmp mime.new
The above is circular.
It can be initialized on entry to Arachne with the following
lines added to your initial batch file:
copy mime.sav mime.cfg
copy mime.try mime.new
I tried the above with only the following two lines changed in mime.cfg:
;-----------------ALTERNATE--------------------------------------
text/html TXT
I then viewed mime.cfg source on the screen and hit shiftF10.
And again.
Beauty. <g>
- Clarence Verge
--
- Help stamp out FATWARE. As a start visit: http://home.arachne.cz/
--