You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, @ericniebler! Yes, it seems quite a common gotcha that the \placeholder macro does not also imply "code" and that you need both. Maybe we should call that out on the wiki.
@ericniebler\placeholder is also being used in various other places as a mathematical/general placeholder, and there was a suggestion to make it render as math font even within code at some point. Unlike \exposid, it is a situational macro and doesn't always mean code.
I think what trips people up is that in code blocks and in places like \tcode{int\placeholder{N}_t}, we don't add extra code font for the placeholder; it's obtained from the context. Also, \exposid and \placeholder render the same in code, so one would assume they're interchangeable, but only \exposid adds code font everywhere. It's really quite surprising.
exposid is semantically different in that its argument is the entire identifier. placeholder is more a general "placeholder", which (as in the intN_t example) can be used in a variety of ways and places.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"ssource-t" in exec.spawn.future/p6 should be in code font.