-
-
Notifications
You must be signed in to change notification settings - Fork 747
Tag Code Refs with D ddoc tag for findSkip Documentation #4002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Please use the new |
|
|
|
Yes, please use |
|
ping |
|
Should I fix all the comments for findSplit? |
|
If you want to, sure. But at least, the text that was changed should use the new syntax for |
Tag code with D ddoc tag.
|
Done. |
|
Thanks! |
|
Auto-merge toggled on |
Tag Code Refs with D ddoc tag for findSkip Documentation
|
I didn't see this before it was merged, but I'd ask you all to remember that
http://dpldocs.info/experimental-docs/std.algorithm.searching.findSkip.html ddox I believe also uses it as a hint for its cross-referencing system. My doc gen (not sure about ddox, but it shouldn't either) does NOT apply D syntax highlighting to generic backticks, because it is not necessarily D code. Backticks may enclose code in any language.
|
This seems like a questionable claim and/or design decision, given that the vast, vast majority of code snippets in DDoc comments will be D code, and this is arguably also the only case where the improved readability really matters. |
|
The driving reason I wanted the backtick feature was to document my XML library, where the majority of the uses are along the lines of: Which is something totally unreasonable to do with ddoc before the backticks, because the I can live with Using generic backticks for D code might not be ideal because you lack the highlighting and such, but it is not wrong. (I wouldn't change existing $(D) to backticks but when writing new code, I could go either way) However, on the other hand, if backticks necessarily meant D code and could be interpreted as such by the generators, that would be wrong because it'd leave things like the XML example case out in limbo again. A HTML example where |
|
TBH, I think |
No description provided.