From e71280f31cbe38df68ab37a2f80365d6e3d24055 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Tue, 16 Aug 2016 14:49:42 -0700 Subject: [PATCH] restore js label to orphan code blocks --- docs/api/dialog.md | 2 +- docs/api/menu.md | 4 ++-- docs/api/web-contents.md | 2 +- docs/api/web-frame.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/dialog.md b/docs/api/dialog.md index f6bf0fdc19fd..478ce54521f1 100644 --- a/docs/api/dialog.md +++ b/docs/api/dialog.md @@ -41,7 +41,7 @@ otherwise it returns `undefined`. The `filters` specifies an array of file types that can be displayed or selected when you want to limit the user to a specific type. For example: -``` +```js { filters: [ {name: 'Images', extensions: ['jpg', 'png', 'gif']}, diff --git a/docs/api/menu.md b/docs/api/menu.md index 0af84f218fee..b4b59a604837 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -359,7 +359,7 @@ the first item. Template: -``` +```js [ {label: '4', id: '4'}, {label: '5', id: '5'}, @@ -381,7 +381,7 @@ Menu: Template: -``` +```js [ {label: 'a', position: 'endof=letters'}, {label: '1', position: 'endof=numbers'}, diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 7bdb3607fc1b..1c24e10a6360 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -843,7 +843,7 @@ The `callback` will be called with `callback(error, data)` on completion. The By default, an empty `options` will be regarded as: -``` +```js { marginsType: 0, printBackground: false, diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 31ec91f93f9d..ae8c271db60a 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -119,7 +119,7 @@ console.log(webFrame.getResourceUsage()) This will generate: -``` +```js { images: { count: 22, @@ -133,7 +133,7 @@ This will generate: xslStyleSheets: { /* same with "images" */ }, fonts: { /* same with "images" */ }, other: { /* same with "images" */ } -}) +} ``` ### `webFrame.clearCache()`