doc: fenced all code blocks, typo fixes
authorRobert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
Sun, 17 Jan 2016 17:39:07 +0000 (18:39 +0100)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit3624eaf6918ffef8b8549d73ca2bad492923407b
treeac945c2e0c92a4ca65e34bfbd97ca9dc1f06420f
parent3ca6d750b90caf4d88205d6ce590b41fd61a07d3
doc: fenced all code blocks, typo fixes

This changes the code blocks from 4-space indentation to ``` fences for
better syntax highlighting and future linting support. Minor On-the-fly
changes for typos and highlight breaking markdown have been made.

JSON-Style objects have been changed so their closing bracket is
on the same line as the opening one.

Known issues:
* Not every JSON / object notation has been improved. Should
  make another run for this.
* Some example functions break hightlighting due to various
  combinations of brackets. However changing them means leaving
  the code style.

Fixes: https://github.com/nodejs/node/issues/4726
PR-URL: https://github.com/nodejs/node/pull/4733
Reviewed-By: Roman Reiss <me@silverwind.io>
36 files changed:
doc/api/addons.markdown
doc/api/assert.markdown
doc/api/buffer.markdown
doc/api/child_process.markdown
doc/api/cluster.markdown
doc/api/console.markdown
doc/api/crypto.markdown
doc/api/debugger.markdown
doc/api/dgram.markdown
doc/api/dns.markdown
doc/api/domain.markdown
doc/api/errors.markdown
doc/api/events.markdown
doc/api/fs.markdown
doc/api/globals.markdown
doc/api/http.markdown
doc/api/https.markdown
doc/api/modules.markdown
doc/api/net.markdown
doc/api/os.markdown
doc/api/path.markdown
doc/api/process.markdown
doc/api/punycode.markdown
doc/api/querystring.markdown
doc/api/readline.markdown
doc/api/repl.markdown
doc/api/stream.markdown
doc/api/string_decoder.markdown
doc/api/synopsis.markdown
doc/api/tls.markdown
doc/api/tty.markdown
doc/api/url.markdown
doc/api/util.markdown
doc/api/v8.markdown
doc/api/vm.markdown
doc/api/zlib.markdown