doc: use 'console' info string for console output#34837
doc: use 'console' info string for console output#34837Trott wants to merge 0 commit intonodejs:masterfrom
Conversation
|
Review requested:
|
doc/api/esm.md
Outdated
There was a problem hiding this comment.
This is the only change that should be made. I've seen this and known about it.
doc/api/esm.md
Outdated
There was a problem hiding this comment.
in this example, the command no longer stands out with this change, and I find it less readable. why don't we want syntax highlighting on command line commands?
That's actually untrue. We do want bash syntax for all non-console command lines. |
|
Here's the reasoning: each single command line isn't shell-agnostic, which is what |
My thinking was:
But really those are rationales probably, and I think mostly I've just seen too much misleading bash highlighting when the command prompt and output is included. So happy to revise this to just be the one uncontroversial instance. PTAL. |
It's impossible to use Any dev using Windows would know this. I think we should think about the target audience here. |
|
Well, let me correct myself, because that's not entirely true. There are other ways to do use |
I certainly agree that the only logical choices (as far as I can tell) are |
|
would |
There is a point to choosing
@zackschuster, the question I would have to ask is what does |
@DerekNonGeneric |
|
(this assumes |
|
@zackschuster, everything here is in Bash, what can I do? lol |
|
i can open a PR myself 😄 |
Would you? |
It may be semantically more agnostic, but under the hood, I believe it is identical to (I'd still be in favor of such a change for semantic reasons.) |
|
This very small change needs reviews. Other than that, it is ready to land. |
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
|
Landed in fc6f136 |
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #34837 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
We don't want bash syntax highlighting for command-line examples, so
switch to
textor, where appropriate,console.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes