D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11515 - Enhancement to DDOC regarding parameter identifiers
Summary: Enhancement to DDOC regarding parameter identifiers
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 10:23 UTC by Gary Willoughby
Modified: 2024-12-13 18:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Gary Willoughby 2013-11-14 10:23:12 UTC
I'm using ddoc to generate a lot of documentation and i've 
noticed in the new 2.064.2 version the type is now included with 
the identifier in parameter lists. Can this be made optional or 
able to be controlled by a macro?

The current parameter identifier macro is this:

DDOC_PARAM_ID  = $(TD $0)

in which $0 was substituted for the parameter identifier, now it 
substitutes $0 for type *and* identifier. It would be nice to have 
something like this:

DDOC_PARAM_TYPE = <span class="identifier-type">$0</span>
DDOC_PARAM_ID = <span class="identifier">$0</span>
DDOC_PARAM  = $(TD $(DDOC_PARAM_TYPE) $(DDOC_PARAM_ID))

So i can style them individually or completely omit the type as before 
which is what i prefer to aid readability.
Comment 1 dlangBugzillaToGithub 2024-12-13 18:14:01 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17626

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB