TextPad mIRC Addons v1.7

Made for:
* TextPad 4.5 (http://www.textpad.com/)
* mIRC 6.02 (http://www.mirc.com/)

This package contains a syntax highlighting definition file, a clip library, and
several macros, all made to handle mIRC script files. It now also contains
reload.mrc, a small scripted utility to reload your .mrc files automatically as
they are updated by external applications (i.e. TextPad). To get the best out of
the .syn file, please enable the case sensitivity which defaults to being turned
off (set IgnoreCase=No in mirc.syn).


The included macros are:
  * mIRC Bookmark Aliases
    Bookmarks every alias in the current file.
  * mIRC Bookmark Dialogs
    Bookmarks every dialog in the current file.
  * mIRC Bookmark Event Handlers
    Bookmarks every event handler in the current file.
  * mIRC Bookmark Menus
    Bookmarks every menu in the current file.
  * mIRC Comment
    Comments out the selected block of mIRC code.
  * mIRC Extract Aliases
    Extract all alias names from the current file (bookmarks are lost).
  * mIRC Remove Control Codes
    Removes all control (burk) codes from the current selection.
  * mIRC Uncomment
    Remove comments from the currently selected block of mIRC code.
    
  These ones were contributed by zipperface, thanks for the idea!
  * mIRC Bold Control code
    Types a single bold code, bind this to ctrl-b for that mIRC experience.
  * mIRC Color Control code
  * mIRC Underline Control code
  * mIRC Reverse Control code
  * mIRC Normal Control code
  
  
The included reload.mrc is a small utility that reloads your .mrc file in mIRC
as you save them in TextPad. It defaults to checking for updates every second
but can be easily be customized to check with the required interval. If you have
a huge number of files and/or a slower computer you will probably want to
increase the interval. I use it quite comfortably with 30+ files loaded on my
machine. Use /arl, /autoreload, or the menubar menu to reach the setup dialog.
Auto Reload is always running unless both "Reload alias files" and "Reload
remote files" are unchecked. It will remind you of this fact when you start
mIRC. It's a good idea not to distribute reload.mrc with your scripts as it's a
developer tool and as you might not want that little note at startup. You're
however free to if you want but I'd appreciate a small note alerting me to the
fact, things like that are fun to know about=)


Installation:

* Copy mirc.syn and mirc.tcl to the Samples\ folder in the folder where you
  installed TextPad.

* Copy the .TPM files to <your users home directory>\Application Data\TextPad\.
  On my machine this is C:\Documents and Settings\<username>\Application
  Data\TextPad\. If you have a problem finding this directory, try creating your
  own macro and note where it ends up.
  
* Create a mIRC script document class from Configure -> New Document Class.
  Chose mirc.syn as the syntax highlighting file.
  
  Find the document class in the preferences and check "Maintain indentation" in
  the "Document class options".

  In the tabulation options for the document class, set "Default tab spacing"
  and "Indent size" to 2. Check "Convert new tabs to spaces"  and "Convert
  existing tabs to spaces when saving files".

  In the colors section for the document class, set the colors as you wish.  
  The keywords sections are:
    1 - mIRC block keywords such as if, ALIAS, and while.
    2 - Named operators such as isalpha, and islower.
    3 - Dialog and menu keywords such as LEAVE, UCLICK, and BUTTON.
    4 - Events such as TEXT, INPUT, ACTION, and CONNECT.
    5 - mIRC commands such as echo, reload, and nick.
    6 - Identifiers such as $1, $isalias, $server, and $me.   
    
* Add the macros in TextPad from Configure -> Preferences -> Macros.

* Bind the key combinations ctrl-b, ctrl-k, and so on, to the appropriate macros
  in Preferences -> Keyboard.

* Preferably you'll want to use case sensitivity for your mirc.syn file, which
  is disabled by default. Just open the mirc.syn file and follow the
  instructions on how to do that.


Contributed clip libraries and macros are gladly accepted and duly credited.
Please send to the below email address.


Please report any problems to the email address below. If you like and use these
files, you could help and let others know about them by linking to the below URL
from your own webpage. If you like and use this little package you could always
send me a small happy email telling me that. I hereby declare this emailware=)


Credits go to:
  zipperface for his macro contribution


-
Martin Sandin (a.k.a. vague)
msandin@hotmail.com
http://come.to/vague/
