diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 707ce0bfd284..ef67bd6d7365 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -64,7 +64,7 @@ If you want to support displays with different DPI densities at the same time, you can put images with different sizes in the same folder and use the filename without DPI suffixes. For example: -```text +```plaintext images/ ├── icon.png ├── icon@2x.png diff --git a/docs/tutorial/application-distribution.md b/docs/tutorial/application-distribution.md index 4b0ed6e4d07f..3eba901b2cba 100644 --- a/docs/tutorial/application-distribution.md +++ b/docs/tutorial/application-distribution.md @@ -20,7 +20,7 @@ below. On macOS: -```text +```plaintext electron/Electron.app/Contents/Resources/app/ ├── package.json ├── main.js @@ -29,7 +29,7 @@ electron/Electron.app/Contents/Resources/app/ On Windows and Linux: -```text +```plaintext electron/resources/app ├── package.json ├── main.js @@ -52,14 +52,14 @@ below, and Electron will then try to read the archive and start from it. On macOS: -```text +```plaintext electron/Electron.app/Contents/Resources/ └── app.asar ``` On Windows and Linux: -```text +```plaintext electron/resources/ └── app.asar ``` @@ -91,7 +91,7 @@ file's name. The structure of a renamed app would be like: -```text +```plaintext MyApp.app/Contents ├── Info.plist ├── MacOS/ diff --git a/docs/tutorial/electron-versioning.md b/docs/tutorial/electron-versioning.md index c941348f5df1..91d05759289b 100644 --- a/docs/tutorial/electron-versioning.md +++ b/docs/tutorial/electron-versioning.md @@ -93,7 +93,7 @@ Specifically, the above means: For each major and minor bump, you should expect to see something like the following: -```text +```plaintext 2.0.0-beta.1 2.0.0-beta.2 2.0.0-beta.3 diff --git a/docs/tutorial/first-app.md b/docs/tutorial/first-app.md index 8c4c8cb942a0..b71a998296a1 100644 --- a/docs/tutorial/first-app.md +++ b/docs/tutorial/first-app.md @@ -17,7 +17,7 @@ Node.js application. The starting point is a `package.json` that is identical to that of a Node.js module. A most basic Electron app would have the following folder structure: -```text +```plaintext your-app/ ├── package.json ├── main.js diff --git a/docs/tutorial/installation.md b/docs/tutorial/installation.md index 3aaba70d369a..18b71d056422 100644 --- a/docs/tutorial/installation.md +++ b/docs/tutorial/installation.md @@ -55,13 +55,13 @@ You can use environment variables to override the base URL, the path at which to look for Electron binaries, and the binary filename. The url used by `electron-download` is composed as follows: -```txt +```plaintext url = ELECTRON_MIRROR + ELECTRON_CUSTOM_DIR + '/' + ELECTRON_CUSTOM_FILENAME ``` For instance, to use the China mirror: -```txt +```plaintext ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/" ``` diff --git a/docs/tutorial/linux-desktop-actions.md b/docs/tutorial/linux-desktop-actions.md index f4e5695ccf44..eebc20855412 100644 --- a/docs/tutorial/linux-desktop-actions.md +++ b/docs/tutorial/linux-desktop-actions.md @@ -13,7 +13,7 @@ Generally speaking, shortcuts are added by providing a `Name` and `Exec` property for each entry in the shortcuts menu. Unity will execute the `Exec` field once clicked by the user. The format is as follows: -```text +```plaintext Actions=PlayPause;Next;Previous [Desktop Action PlayPause] diff --git a/docs/tutorial/security.md b/docs/tutorial/security.md index 93e60c3d204e..1e475b8a2059 100644 --- a/docs/tutorial/security.md +++ b/docs/tutorial/security.md @@ -391,7 +391,7 @@ easy way to improve your application's security. The following CSP will allow Electron to execute scripts from the current website and from `apis.example.com`. -```txt +```plaintext // Bad Content-Security-Policy: '*' diff --git a/docs/tutorial/snapcraft.md b/docs/tutorial/snapcraft.md index c3eb1ec1b07d..a6516b6ae235 100644 --- a/docs/tutorial/snapcraft.md +++ b/docs/tutorial/snapcraft.md @@ -49,7 +49,7 @@ your application's size. The output should look roughly like this: -```text +```plaintext . └── dist └── app-linux-x64 diff --git a/docs/tutorial/using-native-node-modules.md b/docs/tutorial/using-native-node-modules.md index 58e855ffe62e..8d47cd9d53f2 100644 --- a/docs/tutorial/using-native-node-modules.md +++ b/docs/tutorial/using-native-node-modules.md @@ -122,7 +122,7 @@ is built with another system, you'll need to ensure that you build with a delay-load hook installed in the main `.node` file. Your `link.exe` invocation should look like this: -```text +```plaintext link.exe /OUT:"foo.node" "...\node.lib" delayimp.lib /DELAYLOAD:node.exe /DLL "my_addon.obj" "win_delay_load_hook.obj" ``` diff --git a/docs/tutorial/windows-store-guide.md b/docs/tutorial/windows-store-guide.md index 256a5641860d..1ef39eef19d5 100644 --- a/docs/tutorial/windows-store-guide.md +++ b/docs/tutorial/windows-store-guide.md @@ -48,7 +48,7 @@ any module you don't actually need will increase your application's size. The output should look roughly like this: -```text +```plaintext ├── Ghost.exe ├── LICENSE ├── content_resources_200_percent.pak