Defining text macrosYou define text macros by opening the Default.macro file with GoLive or a text editor and then typing, copying and pasting, or dragging the appropriate code. Text macro definitions must have the following basic format: <macro name="XY" type="Syntax-Context"><![CDATA[macro-content]]></macro> The first element in a macro definition is the macro name and type, which defines the syntax context. With the exception of spaces and tabs, you can use any combination of characters for a macro name, but you should restrict yourself to using letters and digits. The source code editors differ in what they regard as self-contained words. For example, using a dollar sign ($) in a macro name might work in the Source Code Editor but will fail in the JavaScript Editor because this character is an integral part of the JavaScript syntax. The second element specifies the content of the macro--that is, the CDATA tag specifies the replacement text. The selection in the replaced text is defined by the percent character (%). If you require a different selection character, you can add the attribute, "selchar=(character)". The content element must be enclosed in two identical or complementary delimiter characters. When you prompt GoLive to insert a text macro, the macro interpreter will regard the first character after the separating blank space as the delimiter and look for an identical character to determine where the content ends. For example, an image element macro with basic attributes could look like this: image «<img "src=../GIFS/???.GIF" width="20" height="20">» You can also use a text macro to insert a string of formatted text. Here is an example: webdesign $This Web Site was designed using <B>GoLive.</B>$ |