Skip to content

Commit fddb371

Browse files
authored
Normalize triple-backtick language identifiers (#3477)
* ```Shell * main pass * reverting PowerShell * revert bash * missing lang * shell to console * to console or bash * not code
1 parent 2e82e69 commit fddb371

File tree

38 files changed

+125
-113
lines changed

38 files changed

+125
-113
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To make substantial changes to an existing article, add or change images, or con
3838

3939
2. Click the green **Clone or download** button, copy to your clipboard, then run the following code at your command prompt:
4040

41-
```Shell
41+
```console
4242
git clone {paste_your_repo_clone_link}
4343
```
4444

microsoft-edge/devtools/console/console-javascript.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,25 @@ For example, on Windows:
105105

106106
Edge Stable:
107107

108-
```shell
108+
```console
109109
"C:\Users\localAccount\AppData\Local\Microsoft\Edge\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
110110
```
111111

112112
Edge Beta:
113113

114-
```shell
114+
```console
115115
"C:\Users\localAccount\AppData\Local\Microsoft\Edge Beta\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
116116
```
117117

118118
Edge Dev:
119119

120-
```shell
120+
```console
121121
"C:\Users\localAccount\AppData\Local\Microsoft\Edge Dev\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
122122
```
123123

124124
Edge Canary:
125125

126-
```shell
126+
```console
127127
"C:\Users\localAccount\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
128128
```
129129

microsoft-edge/devtools/device-mode/testing-other-browsers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To use the Android emulator:
8383

8484
To install the Chromium Content Shell for Android, keep your emulator running and run the following command:
8585

86-
```shell
86+
```console
8787
git clone https://github.com/PaulKinlan/chromium-android-installer.git
8888
chmod u+x ./chromium-android-installer/*.sh
8989
./chromium-android-installer/install-chromeandroid.sh
@@ -101,7 +101,7 @@ Similar to the Chromium Content Shell, you can get an APK to install Firefox ont
101101

102102
To install the file onto an open emulator or connected Android device, run the following command:
103103

104-
```shell
104+
```console
105105
adb install <path_to_APK>/fennec-XX.X.XX.android-arm.apk
106106
```
107107

microsoft-edge/devtools/dom/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ When you use a web browser to request a page, the server returns HTML code like
387387

388388
The browser then parses the HTML and creates a tree of objects based on the HTML like this:
389389

390+
<!-- DOM not at https://learn.microsoft.com/contribute/content/code-in-docs#fenced-code-blocks, renders OK -->
390391
```DOM
391392
html
392393
head

microsoft-edge/devtools/ie-mode/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To debug the content of an IE mode tab, use IEChooser to open Internet Explorer
5757

5858
Launch Microsoft Edge with remote debugging turned on from the command-line interface. Microsoft Visual Studio, Microsoft Visual Studio Code, and other development tools typically run a command to launch Microsoft Edge. The following command launches Microsoft Edge with the remote debugging port set to `9222`.
5959

60-
```shell
60+
```console
6161
start msedge --remote-debugging-port=9222
6262
```
6363

microsoft-edge/devtools/javascript/publish-source-maps-to-azure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ At the final step of your application's build process, for every source map you
7373

7474
Build systems vary from application to application, so there isn't a clear single way to apply this. But here is a sample [Webpack 5 plugin](https://webpack.js.org/), which can be added to your Webpack configuration if you're using it:
7575

76-
```js
76+
```javascript
7777
// file: webpack.plugin-symbols.js
7878
// Copyright (C) Microsoft Corporation. All rights reserved.
7979
// Licensed under the BSD 3-clause license.
@@ -130,7 +130,7 @@ module.exports = class PrepareSourceMapsForSymbolServerPlugin {
130130

131131
You can then add the plugin to the `plugins` section in your `webpack.config.js` configuration file:
132132

133-
```js
133+
```javascript
134134
const PrepareSourceMapsForSymbolServerPlugin = require('./webpack.plugin-symbols.js');
135135

136136
// ...
@@ -181,7 +181,7 @@ When configuring this task, set the `indexableFileFormats` parameter to either `
181181

182182
The Symbol Server team publishes a .NET Core application, `symbol.exe`, which can be downloaded automatically. To programmatically download `symbol.exe`, use the `GET` method of the `Client` endpoint in the Symbol Service REST API, as described in [Client - Get](/rest/api/azure/devops/symbol/client/get). Then run the following command to publish your source maps to the Azure Artifacts symbol server:
183183

184-
```cmd
184+
```console
185185
symbol publish
186186
-d {root directory containing your source maps}
187187
-n {a unique name for this job}

microsoft-edge/devtools/javascript/snippets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,25 +172,25 @@ For example, on Windows:
172172

173173
Edge Stable:
174174

175-
```shell
175+
```console
176176
"C:\Users\localAccount\AppData\Local\Microsoft\Edge\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
177177
```
178178

179179
Edge Beta:
180180

181-
```shell
181+
```console
182182
"C:\Users\localAccount\AppData\Local\Microsoft\Edge Beta\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
183183
```
184184

185185
Edge Dev:
186186

187-
```shell
187+
```console
188188
"C:\Users\localAccount\AppData\Local\Microsoft\Edge Dev\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
189189
```
190190

191191
Edge Canary:
192192

193-
```shell
193+
```console
194194
"C:\Users\localAccount\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe" --unsafely-disable-devtools-self-xss-warnings
195195
```
196196

microsoft-edge/devtools/protocol/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ To attach a custom tooling client to the DevTools Server in Microsoft Edge:
2121

2222
1. Launch Microsoft Edge with the remote debugging port.
2323

24-
```shell
24+
```console
2525
msedge.exe --remote-debugging-port=9222
2626
```
2727

2828
1. Optionally, you can start a separate instance of Microsoft Edge using a distinct user profile.
2929

30-
```shell
30+
```console
3131
msedge.exe --user-data-dir=<some directory>
3232
```
3333

microsoft-edge/devtools/quick-source/quick-source-tool.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ For example, if not done already, clone the **MicrosoftEdge / Demos** repo to yo
8080

8181
1. Clone the repo to your local drive, entering the URL string that you copied from the GitHub repo. If you use a command prompt:
8282

83-
```Shell
83+
```console
8484
# example location where the repo directory will be added:
8585
cd ~/GitHub
8686
git clone https://github.com/MicrosoftEdge/Demos.git
@@ -107,13 +107,13 @@ Continue with the next section.
107107

108108
1. Create a working branch named "test" and switch to it (to avoid altering the demo's files in the "main" branch):
109109

110-
```Shell
110+
```console
111111
git checkout -b test
112112
```
113113

114114
That's equivalent to:
115115

116-
```Shell
116+
```console
117117
git branch test
118118
git switch test
119119
```

microsoft-edge/devtools/remote-debugging/webviews.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,20 @@ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
4848

4949
The setting applies to all of the Android WebViews of the app.
5050

51-
> [!TIP]
52-
> Android WebView debugging isn't affected by the state of the `debuggable` flag in the manifest of the app. If you want to turn on Android WebView debugging only when the `debuggable` flag is `true`, test the flag at runtime.
53-
>
54-
> ```java
55-
> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
56-
> if (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE))
57-
> { WebView.setWebContentsDebuggingEnabled(true); }
58-
> }
59-
> ```
51+
52+
<!-- ------------------------------ -->
53+
#### Testing the flag at runtime
54+
55+
Android WebView debugging isn't affected by the state of the `debuggable` flag in the manifest of the app.
56+
57+
If you want to turn on Android WebView debugging only when the `debuggable` flag is `true`, test the flag at runtime:
58+
59+
```java
60+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
61+
if (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE))
62+
{ WebView.setWebContentsDebuggingEnabled(true); }
63+
}
64+
```
6065

6166

6267
<!-- ====================================================================== -->

0 commit comments

Comments
 (0)