Skip to content
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: fix code lang in repl.md #26075

Closed
wants to merge 1 commit into from

Conversation

gengjiawen
Copy link
Member

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. repl Issues and PRs related to the REPL subsystem. labels Feb 13, 2019
doc/api/repl.md Outdated Show resolved Hide resolved
@richardlau
Copy link
Member

There are other instances in this file of the repl being started from the command line (node ...) and they're currently using js. Either all of them should be changed for consistency or the instance being changed here left alone.

@vsemozhetbyt
Copy link
Contributor

It seems they were marked as js so that code and outputted literals are js-highlighted.

@gengjiawen
Copy link
Member Author

It's not js actually. So better to change it.

Copy link
Member

@lance lance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how changing the code sections to bash is an improvement. It's not pure JavaScript since it's in the REPL, but it seems closer to JS than to bash, in my opinion. If we're going to be strict about it, I would say that in most code examples on this file, there should be no language specified.

@gengjiawen
Copy link
Member Author

Refactor it to console, inspired by https://stackoverflow.com/a/49004070/1713757.

@danbev
Copy link
Contributor

danbev commented Feb 19, 2019

@danbev
Copy link
Contributor

danbev commented Feb 19, 2019

Landed in a993160.

@danbev danbev closed this Feb 19, 2019
danbev pushed a commit that referenced this pull request Feb 19, 2019
PR-URL: #26075
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
addaleax pushed a commit that referenced this pull request Feb 19, 2019
PR-URL: #26075
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@BridgeAR BridgeAR mentioned this pull request Feb 26, 2019
rvagg pushed a commit that referenced this pull request Feb 28, 2019
PR-URL: #26075
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants