Thread overview
ddoc questions
May 08, 2006
Carlos Santander
May 08, 2006
Derek Parnell
May 08, 2006
Carlos Santander
May 08, 2006
How does the LINK2 macro works? I have tried different things but I get
something like this (from memory):

$(LINK2 http://www.digitalmars.com/ DigitalMars)

<a href="http://www.digitalmars.com/ DigitalMars"></a>

What am I missing?

Also, why is a ; put after every class/function/etc?

-- 
Carlos Santander Bernal

May 08, 2006
On Tue, 09 May 2006 02:57:27 +1000, Carlos Santander <csantander619@gmail.com> wrote:

> How does the LINK2 macro works? I have tried different things but I get
> something like this (from memory):
>
> $(LINK2 http://www.digitalmars.com/ DigitalMars)
>
> <a href="http://www.digitalmars.com/ DigitalMars"></a>
>
> What am I missing?

A comma. The macro is defined as

<a href="$1">$+</a>

which means that the first parameter is the 'href' and the rest are bracketed by the <a> </a> tags.

   $(LINK2 http://www.digitalmars.com/, DigitalMars)

Each of the parameters in the macro are comma delimited.

-- 
Derek Parnell
Melbourne, Australia
May 08, 2006
Derek Parnell escribió:
> On Tue, 09 May 2006 02:57:27 +1000, Carlos Santander <csantander619@gmail.com> wrote:
> 
>> How does the LINK2 macro works? I have tried different things but I get
>> something like this (from memory):
>>
>> $(LINK2 http://www.digitalmars.com/ DigitalMars)
>>
>> <a href="http://www.digitalmars.com/ DigitalMars"></a>
>>
>> What am I missing?
> 
> A comma. The macro is defined as
> 
> <a href="$1">$+</a>
> 
> which means that the first parameter is the 'href' and the rest are bracketed by the <a> </a> tags.
> 
>    $(LINK2 http://www.digitalmars.com/, DigitalMars)
> 
> Each of the parameters in the macro are comma delimited.
> 
> --Derek Parnell
> Melbourne, Australia

Duh... Ok, thanks!

-- 
Carlos Santander Bernal