ddoc crossreferences
Morusaka
morusaka at inwind.it
Sat Nov 29 08:55:04 PST 2008
Morusaka Wrote:
> Ok, with the help of grep i've found a lot of examples in Tango sources, for instance in: tango/text/locale/Core.d
>
> $(LINK2 #whereToGo, linkName)
> ...
> ...
> ...
> $(ANCHOR whereToGo)
> ...
> ...
> ...
>
Uhm... I'm not sure where ANCHOR macro is defined... I can't find it.
The macro would expand to something like:
<a name="name" id="id"></a>
but I'm not sure where this line is supposed to be.
If i write something like:
/**
* <a name="name" id="id"></a>
* foo description bla bla bla
* ...
* ...
*/
void foo()
{
....
....
}
the link generated by CandyDoc is *AFTER* function foo definition:
(immagine this is CandyDoc documentation)
void foo();
foo description bla bla bla <----- link points here
...
...
...
so, if you put somewhere this line:
$(LINK2 fooLink, foo)
once clicked, the browser will point to:
foo description bla bla bla
instead of (which i'd prefer)
void foo()
foo description bla bla bla
...
...
Luca.
More information about the Digitalmars-d-learn
mailing list