__________________________________________________________________________

                          Macro component
                    for automatically changing
                          editor layout
                         for WinEdt 5.3
                         ==============

                          Release 1.0
                        September 6, 2001

                       by Denis Stan\v{c}er
                      E-mail: denis@srce.hr

                http://jagor.srce.hr/~denis/winedt
__________________________________________________________________________

Contents:
=========
    About
    Installing
    What does it contain?
    History

__________________________________________________________________________

* About
  =====

Lot of people are writing multi-mode projects, i.e. files of different modes
are opened in one project. For example HTML and CSS, HTML and Perl (CGI) or
LaTeX and HTML. While editing a user can choose a mode specific layout
(tool bar and menus [Insert, Accessories and Help]) but this way editing is
comfortable only in "main" mode, in others you have to manage yourself.

One way of overcoming this problem is to append a second mode menu to "main"
menu. But what if you are working with 5 mode files?

AutoMode changes the layout (tool bar and menus [Insert, Accessories and Help])
automatically according to definitions found in %b\Config\AutoMode\modes.edt.
This way you can work on a LaTeX file (and have all the LaTeX mode benefits)
and move to a HTML file and have HTML tool bar and HTML Insert, Accessories
and Help menu. When you click back you have a LaTeX layout again. It may
cause a little flickering on the screen but this is the price of comfortable
editing. Also it can be easily turned off.
__________________________________________________________________________

* Installation
  ============

The contents of a ZIP file should be extracted in %b\Config\AutoMode
directory. Note that %b is different from %B. While %B always means the
WinEdt program directory (usually it is C:\Program Files\WinEdt Team\WinEdt)
%b means:
    on Windows 95/98/Me:
        %B (usually it is C:\Program Files\WinEdt Team\WinEdt)
    on Windows NT/2000/XP working as Administrator (or single user mode):
        %B (usually it is C:\Program Files\WinEdt Team\WinEdt)
    on Windows NT/2000/XP working as an ordinary user:
        <userprofile>\Application Data\WinEdt
        (usually it is C:\Documents and Settings\<username>\Application Data\WinEdt)

To make this easier this macro component is distributed in three packages:

    1. Plain ZIP file WinEdt_AutoMode.zip for general purpose.
    Unzip it to %b\Config\AutoMode and execute install.edt
    2. Self extracting ZIP file with installer WinEdt_AutoMode_9x.exe for
        users that are using Windows 9x/Me or Windows NT/2000/XP as Administrator.
        By default the installer sets the target directory to
            C:\Program Files\WinEdt Team\WinEdt\Config\AutoMode
    After installation the Explorer opens in the target directory
    allowing you to open install.edt in WinEdt and execute it via
    Macros|Execute Macro...|install.edt
    3. Self extracting ZIP file with installer WinEdt_AutoMode_NT.exe for
        users that are using Windows NT/2000/XP as an ordinary user.
        By default the installer sets the target directory to
            <userprofile>\Application Data\WinEdt\Config\AutoMode
            (usually C:\Documents and Settings\<username>\Application Data\WinEdt\Config\AutoMode).
    After installation the Explorer opens in the target directory
    allowing you to open install.edt in WinEdt and execute it via
    Macros|Execute Macro...|install.edt


__________________________________________________________________________

* What does it contain
  ====================

After installation AutoMode puts a submenu called Options|Auto Mode which has
the following items:

    * Add Mode: For adding new mode definitions (default: TeX, HTML ,ASCII)
    * Remove Mode: For removing unwanted mode definitions
    * Edit default mode: Set a mode for documents that are not among the
                         defined ones
    * Enable Auto Mode: Enable the Auto Mode functionality
    * Disable Auto Mode: Disable the Auto Mode functionality, i.e. do nothing

__________________________________________________________________________

* To Do
  =====

- Make Add Mode more "intelligent", i.e. no double definitions, prompt
  all available modes (exclude already defined)
- Show macros too in Remove Mode list
- Integrate with MDI Open Macro
- Autodetect non-default CCs
__________________________________________________________________________

* History
  =======

  September 6, 2001:
    Release 1.0
  December  17, 2001:
    Release 1.01
		Fix: Bug in opt_menu.edt anchor regular expression
		     (Dictionary... should be Dictionary\.\.\.)
