Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

28 Working with FrameMaker markers > 28.7 Using markers to insert code or text > 28.7.2 Surrounding marker content with code


28.7.2 Surrounding marker content with code

If you assign the Code property to a marker type (see §28.4.1 Assigning properties to marker types), you can have Mif2Go surround the content with additional "before" and "after" code:

[MarkerTypeCodeBefore]

; marker type name = macro

;  for markers assigned the Code property in MarkerTypes.

[MarkerTypeCodeAfter]

; marker type name = macro

;  for markers assigned the Code property in MarkerTypes.

If the marker content includes Mif2Go macros, those macros are expanded, along with any macros assigned in these two sections.

ALink references

Following the example in §28.3 Remapping marker types and hypertext commands, to create an ALink reference to the link identified in the marker content:

[Markers]

Subject = Index ALinkRef

[MarkerTypes]

ALinkRef = Code

[MarkerTypeCodeBefore]

ALinkRef=<a href="alink:

[MarkerTypeCodeAfter]

ALinkRef=">Related Topics</a>

In this example, if you are generating Oracle Help for Java, you specify one subject name in the ALinkRef marker, and get both an ALink (which makes the current topic a member of the group) and a hotspot that calls up that list of topics.

Macro variables

You can capture marker content in a macro variable at the same time:

[Markers]

ALink=ALink AName

[MarkerTypes]

AName=Code

[MarkerTypeCodeBefore]

AName=<$$ALinkText= "

[MarkerTypeCodeAfter]

AName=">

Mif2Go first makes a copy of the ALink marker, then uses that copy to create a macro assignment statement:

<$$ALinkText= "marker content">

This statement sets the value of the macro variable to the content of the marker, without producing any output; and you can use the macro variable in other macros.

For a more extensive example for HTML Help, see §8.6.5.2 Creating a list of ALink keywords from markers.



28 Working with FrameMaker markers > 28.7 Using markers to insert code or text > 28.7.2 Surrounding marker content with code