-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
doc: use 'console' info string for console output #34837
Conversation
Review requested:
|
doc/api/esm.md
Outdated
@@ -1895,7 +1885,7 @@ requires the full path to a module be provided to the loader. To enable the | |||
automatic extension resolution and importing from directories that include an | |||
index file use the `node` mode. | |||
|
|||
```bash | |||
```console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only change that should be made. I've seen this and known about it.
doc/api/esm.md
Outdated
If in the same folder as the above package.json, `node my-app.js` runs | ||
`my-app.js` as an ES module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
text
or, where appropriate,console
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes