Skip to content

Commit

Permalink
Set code languages for various files (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Jul 24, 2023
1 parent 0ba8d7a commit e5401e4
Show file tree
Hide file tree
Showing 100 changed files with 163 additions and 163 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/api/readablestreambyobreader/read/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The following are possible:

- If a chunk is available and the stream is still active, the promise fulfills with an object of the form:

```
```js
{ value: theChunk, done: false }
```

Expand All @@ -54,13 +54,13 @@ The following are possible:

- If the stream is closed, the promise fulfills with an object of the form (where `theChunk` has the same properties as above):

```
```js
{ value: theChunk, done: true }
```

- If the stream is cancelled, the promise fulfills with an object of the form:

```
```js
{ value: undefined, done: true }
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/address/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ left out of the pool of candidates, as are any other candidates which aren't rel

Consider this {{Glossary("SDP")}} attribute line (a-line) which describes an ICE candidate:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/candidate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If the `candidate` is an empty string (`""`), the end of the candidate list has

The syntax of the candidate string is described in {{RFC(5245, "", 15.1)}}. For an a-line (attribute line) that looks like this:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/component/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A string which is one of the following:

Consider this {{Glossary("SDP")}} attribute line (a-line):

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/foundation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A string which uniquely identifies the candidate across all
Consider this {{Glossary("SDP")}} attribute line (a-line) which describes an ICE
candidate:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/port/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A 16-bit number indicating the port number on the device at the address indicate
Consider this {{Glossary("SDP")}} attribute line (a-line) which describes an ICE
candidate:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/priority/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The larger this value is, the more preferable the remote peer considers this can

Consider this {{Glossary("SDP")}} attribute line (a-line) which describes an ICE candidate:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/protocol/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A string that indicates what network protocol the candidate uses:

Here's an example candidate a-line from an ICE transaction:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ addresses. `relatedAddress` can also be used by Quality-of-Service (QoS) mechani

Here's an [SDP](/en-US/docs/Web/API/WebRTC_API/Protocols#sdp) attribute line (a-line) describing an ICE candidate discovered by the STUN server:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 6502 typ srflx raddr 192.168.2.77 rport 32768 generation 0
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcicecandidate/relatedport/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ reasons, but if present can be a useful tool during debugging. See the [Example]
Here's an {{Glossary("SDP")}} attribute line (a-line) describing an ICE candidate
discovered by the STUN server:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 6502 typ srflx raddr 192.168.2.77 rport 32768 generation 0
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ new RTCIceCandidate(candidateInfo)
The syntax of the candidate string is described in {{RFC(5245, "", 15.1)}}.
For an a-line (attribute line) that looks like this:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ addIceCandidate(candidate, successCallback, failureCallback) // deprecated
The syntax of the candidate string is described in {{RFC(5245, "", 15.1)}}.
For an a-line (attribute line) that looks like this:

```
```plain
a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host
```

Expand Down Expand Up @@ -98,7 +98,7 @@ addIceCandidate(candidate, successCallback, failureCallback) // deprecated

If no `candidate` object is specified, or its value is `null`, an end-of-candidates signal is sent to the remote peer using the `end-of-candidates` a-line, formatted like this:

```
```plain
a=end-of-candidates
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcrtptransceiver/direction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ by each of those methods. The SDP contains an a-line which specifies the directi
For example, if the `direction` is specified as `"sendrecv"`, the
corresponding SDP a-line is:

```
```plain
a=sendrecv
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcsessiondescription/sdp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sessionDescription.sdp = value

The value is a string containing an SDP message like this one:

```
```plain
v=0
o=alice 2890844526 2890844526 IN IP4 host.anywhere.com
s=
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/scheduler/posttask/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ scheduler.postTask(() => {

The expected output is shown below: tasks are executed in priority order, and then declaration order.

```
```plain
usr-blk 1
usr-blk 2
usr-vis 1
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/settimeout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ console.log("After setTimeout");

Will write to the console:

```
```plain
After setTimeout
foo has been called
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/taskcontroller/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ controller.abort();

The console output of this example would be:

```
```plain
The priority changed from user-blocking to background.
Task aborted
Catch error: AbortError
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/texttrackcuelist/getcuebyid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A {{domxref("VTTCue")}} object.

The {{domxref("TextTrack.cues")}} property returns a {{domxref("TextTrackCueList")}} containing the current cues for that particular track. Calling `cues.getCueById("second")` returns the {{domxref("VTTCue")}} with an ID of "second".

```
```plain
WEBVTT
first
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/texttrackcuelist/length/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ An `unsigned long` which is the number of cues in the list.

The {{domxref("TextTrack.cues")}} property returns a {{domxref("TextTrackCueList")}} containing the current cues for that particular track. Calling `cues.length` returns the number of cues in the list. Using the WebVTT track below, the value of `length` is 5.

```
```plain
WEBVTT
first
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/urlsearchparams/foreach/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ searchParams.forEach((value, key) => {

The result is:

```
```plain
value1 key1
value2 key2
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/urlsearchparams/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ for (const key of searchParams.keys()) {

The result is:

```
```plain
key1
key2
```
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/urlsearchparams/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ for (const value of searchParams.values()) {

The result is:

```
```plain
value1
value2
```
Expand All @@ -58,7 +58,7 @@ console.log(Array.from(searchParams.values()));

The result is:

```
```plain
['value1', 'value2']
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/user-agent_client_hints_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The User-Agent Client Hints API extends [Client Hints](/en-US/docs/Web/HTTP/Clie

Parsing the User-Agent string has historically been the way to get information about the user's browser or device. A typical user agent string looks like the following example, identifying Chrome 92 on Windows:

```
```plain
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/view_transitions_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Let's walk through how this works:
3. The API captures the new state of the page as a live representation.
4. The API constructs a pseudo-element tree with the following structure:

```
```plain
::view-transition
└─ ::view-transition-group(root)
└─ ::view-transition-image-pair(root)
Expand Down Expand Up @@ -100,7 +100,7 @@ We've given the {{htmlelement("figcaption")}} element a `view-transition-name` o

With this CSS applied, the pseudo-element tree will now look like this:

```
```plain
::view-transition
├─ ::view-transition-group(root)
│ └─ ::view-transition-image-pair(root)
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/vrlayerinit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ if (navigator.getVRDisplays) {

{{domxref("VRLayerInit")}} objects look something like this:

```
```js
{
leftBounds : [ /* … */ ],
rightBounds: [ /* … */ ],
leftBounds : [/**/],
rightBounds: [/**/],
source: canvasReference
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ If you use this call, you will get a mono buffer (single-channel buffer) that, w

The Web Audio API uses a planar buffer format. The left and right channels are stored like this:

```
```plain
LLLLLLLLLLLLLLLLRRRRRRRRRRRRRRRR (for a buffer of 16 frames)
```

This structure is widespread in audio processing, making it easy to process each channel independently.

The alternative is to use an interleaved buffer format:

```
```plain
LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR (for a buffer of 16 frames)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ The available `credentialProtectionPolicy` values are as follows:

If the `create()` call is successful, the authenticator data will contain a representation of the `credProtect` value representing the set policy in the following form:

```
```js
{ "credProtect": 0x01 }
```

Expand Down Expand Up @@ -336,8 +336,8 @@ extensions: {

If the relying party is authorized to receive the `minPinLength` value (if its `rpId` is present on the authenticator's authorized relying party list), the authenticator data will contain a representation of it in the following form:

```
"minPinLength": uint
```js
{"minPinLength": uint}
```

If the relying party is not authorized, the extension is ignored, and no `"minPinLength"` output value is provided.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Source: [How is git commit sha1 formed](https://gist.github.com/masak/2415865)

Essentially it's the UTF8 string (null character written as `\0`):

```
```plain
commit [size in bytes as decimal of this info]\0tree [tree hash]
parent [parent commit hash]
author [author info] [timestamp]
Expand Down
16 changes: 8 additions & 8 deletions files/en-us/web/api/webgl_api/webgl_best_practices/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Similarly to extensions, the limits of your system will be different than your c

The minimum requirements for WebGL are quite low. In practice, effectively all systems support at least the following:

```
```plain
MAX_CUBE_MAP_TEXTURE_SIZE: 4096
MAX_RENDERBUFFER_SIZE: 4096
MAX_TEXTURE_SIZE: 4096
Expand Down Expand Up @@ -288,7 +288,7 @@ If you have a float texture, iOS requires that you use `highp sampler2D foo;`, o

The vertex language has the following predeclared globally scoped default precision statements:

```
```glsl
precision highp float;
precision highp int;
precision lowp sampler2D;
Expand All @@ -297,7 +297,7 @@ precision lowp samplerCube;

The fragment language has the following predeclared globally scoped default precision statements:

```
```glsl
precision mediump int;
precision lowp sampler2D;
precision lowp samplerCube;
Expand All @@ -315,7 +315,7 @@ If `highp float` is available, `GL_FRAGMENT_PRECISION_HIGH` will be defined as `

A good pattern for "always give me the highest precision":

```
```glsl
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
Expand Down Expand Up @@ -432,7 +432,7 @@ Most texture uploads from DOM elements will incur a processing pass that will te

In WebGL:

```
```glsl
useProgram(prog1)
<pipeline flush>
Expand All @@ -446,7 +446,7 @@ In WebGL:

Behind the scenes in the browser:

```
```glsl
useProgram(prog1)
<pipeline flush>
Expand All @@ -471,7 +471,7 @@ Prefer doing uploads before starting drawing, or at least between pipelines:

In WebGL:

```
```glsl
bindTexture(webgl_texture)
texImage2D(HTMLVideoElement)
Expand All @@ -486,7 +486,7 @@ In WebGL:

Behind the scenes in the browser:

```
```glsl
bindTexture(webgl_texture)
-texImage2D(HTMLVideoElement):
Expand Down
Loading

0 comments on commit e5401e4

Please sign in to comment.