another <pre> problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Illeman

    another <pre> problem

    This is one of several macros I wish to display:

    <PRE CLASS="special macro>
    ;;
    ;; Reverse argument list
    ;;
    reverse_args MACRO arglist:req
    local txt, arg
    txt textequ <>
    % FOR arg, <arglist>
    txt CATSTR <arg>, <,>, txt
    ENDM
    txt SUBSTR txt, 1, @SizeStr( %txt ) - 1
    txt CATSTR <!<>, txt, <!>>
    EXITM txt
    ENDM

    ;;
    ;; Call Windows API Function
    ;;
    ApiCall MACRO thecall:req, arglist:vararg
    local count

    count = 0

    % FOR argn, reverse_args( <arglist> )
    if (type argn) eq 1 ;; if byte label
    push offset argn ;; push address
    else
    push argn
    endif
    count = count + 4
    ENDM

    txt TEXTEQU <>
    txt CATSTR <_imp__>, <thecall>, <@>, %(count)

    txt2 TEXTEQU <>
    txt2 CATSTR <_imp__>, <thecall>, <@>, %(count), <:DWORD>

    IFNDEF <txt2>
    extern txt2 ;; define it !
    ENDIF

    call dword ptr [txt]
    ENDM

    </PRE>

    Unfortunately, many of the '<' and '>' prevent it
    from displaying properly. Can anyone offer advice,
    rather have me resort to replacing them with the
    respective &lt; and &gt; ?


  • jmm-list-gn

    #2
    Re: another &lt;pre&gt; problem

    Alan Illeman wrote:[color=blue]
    >
    > Unfortunately, many of the '<' and '>' prevent it
    > from displaying properly. Can anyone offer advice,
    > rather have me resort to replacing them with the
    > respective &lt; and &gt; ?
    >[/color]
    That is your only option. That is how you display < and > in HTML.

    --
    jmm dash list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)

    Comment

    Working...