For example,
/* http://website.com/_abc */
module abc;
The _ is needed to prevent Ddoc from highlighting the abc. But this makes the URL unusable from a text editor.
The solution is to get rid of _ detection inside of URLs.
Comment #1 by destructionator — 2017-07-26T23:12:28Z
The correct solution is to get rid of the utterly counterproductive identifier highlighting entirely, then remove the useless _ suppression entirely.
Comment #2 by dlang-bugzilla — 2017-07-27T17:23:34Z
(In reply to Adam D. Ruppe from comment #1)
> The correct solution is to get rid of the utterly counterproductive
> identifier highlighting entirely, then remove the useless _ suppression
> entirely.
We only need to restrict it to $(D ...) or `backtick` blocks, as any identifiers that would benefit from being highlighted would need to be there anyway.
Comment #3 by bugzilla — 2017-07-28T08:19:24Z
An even better solution is for Ddoc to recognize URLs and wrap them automatically in $(LINK ) macros. This will also resolve the leading _ problem in URLs.
Comment #4 by destructionator — 2017-07-28T16:22:55Z
The highlight thing and _ treatment happens in macros too...