Mark code sample languages explicitly

This commit is contained in:
mDuo13
2020-09-10 02:18:40 -07:00
parent eb6142f270
commit d46202a04f
92 changed files with 531 additions and 450 deletions

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"command": "connect",
"ip": "192.170.145.88",
@@ -22,7 +22,7 @@
*JSON-RPC*
```
```json
{
"method": "connect",
"params": [
@@ -37,7 +37,7 @@
*コマンドライン*
```
```sh
#Syntax: connect ip [port]
rippled connect 192.170.145.88 51235
```
@@ -59,7 +59,7 @@ rippled connect 192.170.145.88 51235
*JSON-RPC*
```
```json
{
"result" : {
"message" : "connecting",
@@ -70,9 +70,10 @@ rippled connect 192.170.145.88 51235
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"message" : "connecting",

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"command": "connect",
"ip": "192.170.145.88",
@@ -22,7 +22,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "connect",
"params": [
@@ -37,7 +37,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: connect ip [port]
rippled connect 192.170.145.88 51235
```
@@ -59,7 +59,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
{
"result" : {
"message" : "connecting",
@@ -70,9 +70,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"message" : "connecting",

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"id": 2,
"command": "peers"
@@ -37,7 +37,7 @@ rippled peers
*WebSocket*
```
```json
{
"id": 2,
"status": "success",
@@ -152,7 +152,7 @@ rippled peers
*JSON-RPC*
```
```json
{
"result" : {
"cluster" : {},
@@ -265,9 +265,10 @@ rippled peers
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"cluster" : {},
@@ -411,4 +412,4 @@ Connecting to 127.0.0.1:5005
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}
{% include '_snippets/rippled_versions.md' %}

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 2,
"command": "peers"
@@ -37,7 +37,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id": "peers_example",
"result": {
@@ -174,7 +174,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
{
"result" : {
"cluster" : {},
@@ -266,9 +266,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"cluster" : {},