<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.multiedit.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.multiedit.com/feed.php">
        <title>MultiEditSoftware</title>
        <description></description>
        <link>http://wiki.multiedit.com/</link>
        <image rdf:resource="http://wiki.multiedit.com/lib/images/favicon.ico" />
       <dc:date>2012-02-04T02:00:08-07:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_11?rev=1237398000&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_10?rev=1237397187&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_9?rev=1237397020&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_8?rev=1237396739&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_7?rev=1237396585&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_6?rev=1237396287&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_5?rev=1237395130&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_1?rev=1237394841&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_05.0?rev=1236654861&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.1?rev=1236634185&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.2?rev=1236183966&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.multiedit.com/lib/images/favicon.ico">
        <title>MultiEditSoftware</title>
        <link>http://wiki.multiedit.com/</link>
        <url>http://wiki.multiedit.com/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_11?rev=1237398000&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:40:00-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 11. Defining a key to run a macro - corrected images</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_11?rev=1237398000&amp;do=diff</link>
        <description>Introduction to CMac: 11. Defining a key to run a macro

Let's say we have a macro, such as the one we made in Introduction to CMac: 2. Hello World II, and we're tired of running it via MACRO -&gt; RUN... or clicking the  toolbar button, and then typing in the name of the macro to run. We'd like to assign a key to run the macro. We can do this as follows:</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_10?rev=1237397187&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:26:27-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 10. ARRAYS &amp; STRUCTURES - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_10?rev=1237397187&amp;do=diff</link>
        <description>Introduction to CMac: 10. ARRAYS &amp; STRUCTURES

(Sample code for tests 1 to 6 below can be downloaded here.)

Arrays of integers and real numbers can only be defined within a structure. First a review of structures:


struct tstruct1
{
  int i;
  real j;
  str s1;
}

void test1
{
  struct tstruct1 m;

  m.i = 10;
  m.j = 3.14;
  m.s1 = &quot;This is a test&quot;;

  make_message( 'm.i=' + str(m.i)
              + ' m.j=' + rstr(m.j,7,4)
              + ' m.s1=&quot;' + m.s1 + '&quot;');
}</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_9?rev=1237397020&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:23:40-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 09. Calling user-written dll - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_9?rev=1237397020&amp;do=diff</link>
        <description>Introduction to CMac: 09. Calling user-written dll

Multi-Edit CMac has the ability to call external user-written routines that are in a Dynamic Link Library (DLL). You can write your code using any language, such as C++. (I don't explain how to create a dll here.)</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_8?rev=1237396739&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:18:59-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 08. GetSystemTime - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_8?rev=1237396739&amp;do=diff</link>
        <description>Introduction to CMac: 08. GetSystemTime

Multi-Edit CMac has the ability to call external routines provided by the Windows operating system. Here is an example of calling the GetSystemTime routine.

GetSystemTime returns Coordinated Universal Time (UTC). It does not take into account what time zone you are in. (i.e. UTC time is 5 hours ahead of Eastern Time; 8 hours ahead of Pacific Time.)</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_7?rev=1237396585&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:16:25-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 07. Multi-Edit Tags - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_7?rev=1237396585&amp;do=diff</link>
        <description>Introduction to CMac: 07. Multi-Edit Tags

Multi-Edit tags makes it easy to quickly find your coded routines. This works for all programming languages that Multi-Edit supports. My example here will be for the Multi-Edit CMac code files in the Multi-Edit\src folder.</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_6?rev=1237396287&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T10:11:27-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 06. Command Map Report - image fix</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_6?rev=1237396287&amp;do=diff</link>
        <description>Introduction to CMac: 06. Command Map Report

A great way to learn about CMac is to examine some real code. The Multi-Edit\src folder (e.g. C:\Program Files\Multi-Edit 9.10\src) contains all the CMac macro source code for Multi-Edit. (NOTE: If you do not have a \src folder under Multi-Edit then you need to reinstall Multi-Edit and check the box “Macro Source”. See &lt;http://www.multiedit.com/forums/viewtopic.php?p=1380#1380&gt;))</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_5?rev=1237395130&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T09:52:10-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 05. DebugLog - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_5?rev=1237395130&amp;do=diff</link>
        <description>Introduction to CMac: 05. DebugLog

Another useful debugging tool is DebugLog:


#include Win32.sh   //Must come before #include MsgLog.sh
                    //(defines struct TMsg used by MsgLog.sh)
#include MsgLog.sh  //DebugLog is defined here.

void testdebuglog()
{
  DebugLog(2, &quot;TestDebugLog&quot;, &quot;Hello World&quot; );
}</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_1?rev=1237394841&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-18T09:47:21-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Introduction to CMac: 01. Hello World - misc formatting</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/cmac_1?rev=1237394841&amp;do=diff</link>
        <description>Introduction to CMac: 01. Hello World

Here's my intro to the powerful CMac language which comes with Multi-Edit. I've recently learned it so I'm passing the knowledge on.

We'll start with the usual “Hello World” program. In Multi-Edit, type in the following code in a new window and save it as file test.s:</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_05.0?rev=1236654861&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-09T20:14:21-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Adding Language Support: 5.0 Creating an Add-On installer - misc formatting changes</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_05.0?rev=1236654861&amp;do=diff</link>
        <description>Adding Language Support: 5.0 Creating an Add-On installer

This is a template for adding support for a new language. Currently it is set up as:


         Language Name: ZZZZZZ
    Filename Extension: .ZZZ
                Prefix: Zzz   (See notes below on prefixes)</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.1?rev=1236634185&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-09T14:29:45-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Adding Language Support:  4.1 Construct Matching - fixed formatting problems</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.1?rev=1236634185&amp;do=diff</link>
        <description>Adding Language Support:  4.1 Construct Matching

Construct Matching allows the matching up of corresponding keywords, such as

	*  IF...ENDIF
	*  LOOP...END LOOP
	*  BEGIN...END
	*  CASE...END CASE
	*  #IFDEF...#ENDIF
	*  DO...WHILE
	*  RECORD...END RECORD
	*  REPEAT...UNTIL
	*  SELECT CASE...END SELECT
	*  FUNCTION...END FUNCTION
	*  MODULE...ENDMODULE
	*  ()
	*  []
	*  {}</description>
    </item>
    <item rdf:about="http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.2?rev=1236183966&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-04T09:26:06-07:00</dc:date>
        <dc:creator>geofff</dc:creator>
        <title>Adding Language Support:  4.2 Auto Construct Matching - initial import</title>
        <link>http://wiki.multiedit.com/doku.php/doc/tutorial/add_new_lang_04.2?rev=1236183966&amp;do=diff</link>
        <description>Adding Language Support:  4.2 Auto Construct Matching

We'll now add the ability that when you type a closing parenthesis ”)” Multi-Edit will automatically temporarily highlight the range to the corresponding open parenthesis. And we'll do the same for a closing brace ”]” and a closing bracket ”}”.</description>
    </item>
</rdf:RDF>

