From e5401e48c719e714516b8f8399f1d45823814876 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Mon, 24 Jul 2023 16:40:37 -0700 Subject: [PATCH] Set code languages for various files (part 2) --- .../api/readablestreambyobreader/read/index.md | 6 +++--- .../web/api/rtcicecandidate/address/index.md | 2 +- .../web/api/rtcicecandidate/candidate/index.md | 2 +- .../web/api/rtcicecandidate/component/index.md | 2 +- .../web/api/rtcicecandidate/foundation/index.md | 2 +- .../en-us/web/api/rtcicecandidate/port/index.md | 2 +- .../web/api/rtcicecandidate/priority/index.md | 2 +- .../web/api/rtcicecandidate/protocol/index.md | 2 +- .../api/rtcicecandidate/relatedaddress/index.md | 2 +- .../web/api/rtcicecandidate/relatedport/index.md | 2 +- .../api/rtcicecandidate/rtcicecandidate/index.md | 2 +- .../rtcpeerconnection/addicecandidate/index.md | 4 ++-- .../web/api/rtcrtptransceiver/direction/index.md | 2 +- .../web/api/rtcsessiondescription/sdp/index.md | 2 +- files/en-us/web/api/scheduler/posttask/index.md | 2 +- files/en-us/web/api/settimeout/index.md | 2 +- files/en-us/web/api/taskcontroller/index.md | 2 +- .../web/api/texttrackcuelist/getcuebyid/index.md | 2 +- .../web/api/texttrackcuelist/length/index.md | 2 +- .../web/api/urlsearchparams/foreach/index.md | 2 +- .../en-us/web/api/urlsearchparams/keys/index.md | 2 +- .../web/api/urlsearchparams/values/index.md | 4 ++-- .../web/api/user-agent_client_hints_api/index.md | 2 +- .../en-us/web/api/view_transitions_api/index.md | 4 ++-- files/en-us/web/api/vrlayerinit/index.md | 6 +++--- .../basic_concepts_behind_web_audio_api/index.md | 4 ++-- .../webauthn_extensions/index.md | 6 +++--- .../index.md | 2 +- .../api/webgl_api/webgl_best_practices/index.md | 16 ++++++++-------- .../getcontextattributes/index.md | 2 +- .../writing_a_websocket_server_in_java/index.md | 2 +- .../writing_websocket_server/index.md | 2 +- .../writing_websocket_servers/index.md | 2 +- .../web/api/webxr_device_api/rendering/index.md | 4 ++-- .../web/api/workerglobalscope/location/index.md | 2 +- .../web/api/workerglobalscope/navigator/index.md | 2 +- .../web/api/workerglobalscope/self/index.md | 2 +- .../web/api/workernavigator/useragent/index.md | 2 +- .../index.md | 2 +- .../web/api/xsltprocessor/basic_example/index.md | 2 +- .../web/css/-webkit-mask-box-image/index.md | 2 +- files/en-us/web/css/@charset/index.md | 2 +- .../en-us/web/css/@counter-style/system/index.md | 10 +++++----- files/en-us/web/css/@document/index.md | 2 +- files/en-us/web/css/@page/index.md | 2 +- files/en-us/web/css/_colon_current/index.md | 2 +- files/en-us/web/css/_colon_future/index.md | 2 +- files/en-us/web/css/_colon_past/index.md | 2 +- files/en-us/web/css/_colon_target/index.md | 2 +- .../web/css/_doublecolon_highlight/index.md | 2 +- files/en-us/web/css/background-position/index.md | 6 +++--- .../web/css/color-interpolation-method/index.md | 2 +- .../using_css_counters/index.md | 4 ++-- files/en-us/web/css/hex-color/index.md | 2 +- .../web/css/hue-interpolation-method/index.md | 2 +- files/en-us/web/exslt/exsl/node-set/index.md | 2 +- files/en-us/web/exslt/math/min/index.md | 2 +- files/en-us/web/exslt/regexp/match/index.md | 2 +- files/en-us/web/guide/ajax/index.md | 4 ++-- .../index.md | 2 +- .../web/guide/audio_and_video_delivery/index.md | 4 ++-- .../index.md | 4 ++-- files/en-us/web/html/element/audio/index.md | 2 +- files/en-us/web/html/element/bdi/index.md | 4 ++-- files/en-us/web/html/element/video/index.md | 6 +++--- files/en-us/web/http/authentication/index.md | 6 +++--- .../identifying_resources_on_the_web/index.md | 8 ++++---- .../web/http/basics_of_http/mime_types/index.md | 6 +++--- .../http/basics_of_http/resource_urls/index.md | 8 ++++---- files/en-us/web/http/caching/index.md | 4 ++-- .../configuring_servers_for_ogg_media/index.md | 2 +- .../corsalloworiginnotmatchingorigin/index.md | 4 ++-- .../cors/errors/corsmissingalloworigin/index.md | 4 ++-- files/en-us/web/http/cors/errors/index.md | 2 +- .../web/http/headers/content-location/index.md | 2 +- .../content-security-policy/base-uri/index.md | 4 ++-- .../content-security-policy/form-action/index.md | 4 ++-- files/en-us/web/http/headers/sec-gpc/index.md | 2 +- files/en-us/web/http/headers/set-cookie/index.md | 2 +- files/en-us/web/http/headers/upgrade/index.md | 2 +- .../web/http/headers/user-agent/firefox/index.md | 10 +++++----- .../web/http/headers/x-frame-options/index.md | 12 ++++++------ .../web/http/headers/x-xss-protection/index.md | 4 ++-- .../proxy_auto-configuration_pac_file/index.md | 6 +++--- files/en-us/web/http/status/102/index.md | 2 +- files/en-us/web/http/status/207/index.md | 2 +- files/en-us/web/http/status/208/index.md | 2 +- files/en-us/web/http/status/226/index.md | 2 +- files/en-us/web/http/status/404/index.md | 2 +- files/en-us/web/http/status/421/index.md | 2 +- files/en-us/web/http/status/423/index.md | 4 ++-- .../javascript/guide/grammar_and_types/index.md | 6 +++--- .../guide/indexed_collections/index.md | 2 +- .../guide/loops_and_iteration/index.md | 2 +- .../web/javascript/guide/using_classes/index.md | 2 +- .../guide/working_with_objects/index.md | 2 +- .../inheritance_and_the_prototype_chain/index.md | 6 +++--- .../deprecated_and_obsolete_features/index.md | 2 +- .../reference/errors/already_has_pragma/index.md | 2 +- .../errors/array_sort_argument/index.md | 2 +- 100 files changed, 163 insertions(+), 163 deletions(-) diff --git a/files/en-us/web/api/readablestreambyobreader/read/index.md b/files/en-us/web/api/readablestreambyobreader/read/index.md index 892abd52f4012b0..3106ab5adf52082 100644 --- a/files/en-us/web/api/readablestreambyobreader/read/index.md +++ b/files/en-us/web/api/readablestreambyobreader/read/index.md @@ -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 } ``` @@ -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 } ``` diff --git a/files/en-us/web/api/rtcicecandidate/address/index.md b/files/en-us/web/api/rtcicecandidate/address/index.md index 8174bac187461b7..9ecfef3670ec337 100644 --- a/files/en-us/web/api/rtcicecandidate/address/index.md +++ b/files/en-us/web/api/rtcicecandidate/address/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/candidate/index.md b/files/en-us/web/api/rtcicecandidate/candidate/index.md index 33ba669b50cf29b..23e4ffa667fff06 100644 --- a/files/en-us/web/api/rtcicecandidate/candidate/index.md +++ b/files/en-us/web/api/rtcicecandidate/candidate/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/component/index.md b/files/en-us/web/api/rtcicecandidate/component/index.md index c2de526f7cb7b43..944539edb55e466 100644 --- a/files/en-us/web/api/rtcicecandidate/component/index.md +++ b/files/en-us/web/api/rtcicecandidate/component/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/foundation/index.md b/files/en-us/web/api/rtcicecandidate/foundation/index.md index 72271576fc89920..365f4128317b957 100644 --- a/files/en-us/web/api/rtcicecandidate/foundation/index.md +++ b/files/en-us/web/api/rtcicecandidate/foundation/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/port/index.md b/files/en-us/web/api/rtcicecandidate/port/index.md index 3c9facacd39af5c..e7833f4c56d4985 100644 --- a/files/en-us/web/api/rtcicecandidate/port/index.md +++ b/files/en-us/web/api/rtcicecandidate/port/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/priority/index.md b/files/en-us/web/api/rtcicecandidate/priority/index.md index 6a9457a27c0075c..240486cddee1902 100644 --- a/files/en-us/web/api/rtcicecandidate/priority/index.md +++ b/files/en-us/web/api/rtcicecandidate/priority/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/protocol/index.md b/files/en-us/web/api/rtcicecandidate/protocol/index.md index 3ea28926160d677..2d73943354c1e52 100644 --- a/files/en-us/web/api/rtcicecandidate/protocol/index.md +++ b/files/en-us/web/api/rtcicecandidate/protocol/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/relatedaddress/index.md b/files/en-us/web/api/rtcicecandidate/relatedaddress/index.md index 50445056dd478c6..74fa00e8b5c7afc 100644 --- a/files/en-us/web/api/rtcicecandidate/relatedaddress/index.md +++ b/files/en-us/web/api/rtcicecandidate/relatedaddress/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/relatedport/index.md b/files/en-us/web/api/rtcicecandidate/relatedport/index.md index 0a320fd6e85f9b9..1596142b5f0a32e 100644 --- a/files/en-us/web/api/rtcicecandidate/relatedport/index.md +++ b/files/en-us/web/api/rtcicecandidate/relatedport/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcicecandidate/rtcicecandidate/index.md b/files/en-us/web/api/rtcicecandidate/rtcicecandidate/index.md index 42aff503bd0696a..0de5135ffd38520 100644 --- a/files/en-us/web/api/rtcicecandidate/rtcicecandidate/index.md +++ b/files/en-us/web/api/rtcicecandidate/rtcicecandidate/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md b/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md index a4dbcc871bd04dd..622290ad605503d 100644 --- a/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md +++ b/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md @@ -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 ``` @@ -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 ``` diff --git a/files/en-us/web/api/rtcrtptransceiver/direction/index.md b/files/en-us/web/api/rtcrtptransceiver/direction/index.md index 48c3b0369077533..117d5836da87f02 100644 --- a/files/en-us/web/api/rtcrtptransceiver/direction/index.md +++ b/files/en-us/web/api/rtcrtptransceiver/direction/index.md @@ -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 ``` diff --git a/files/en-us/web/api/rtcsessiondescription/sdp/index.md b/files/en-us/web/api/rtcsessiondescription/sdp/index.md index 2dc3829793ac29d..54978171007cca5 100644 --- a/files/en-us/web/api/rtcsessiondescription/sdp/index.md +++ b/files/en-us/web/api/rtcsessiondescription/sdp/index.md @@ -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= diff --git a/files/en-us/web/api/scheduler/posttask/index.md b/files/en-us/web/api/scheduler/posttask/index.md index ba0d0fb7459bdea..0ce686e05a69adf 100644 --- a/files/en-us/web/api/scheduler/posttask/index.md +++ b/files/en-us/web/api/scheduler/posttask/index.md @@ -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 diff --git a/files/en-us/web/api/settimeout/index.md b/files/en-us/web/api/settimeout/index.md index 3d8434c62ecbd39..8c4fd076d0f66ae 100644 --- a/files/en-us/web/api/settimeout/index.md +++ b/files/en-us/web/api/settimeout/index.md @@ -358,7 +358,7 @@ console.log("After setTimeout"); Will write to the console: -``` +```plain After setTimeout foo has been called ``` diff --git a/files/en-us/web/api/taskcontroller/index.md b/files/en-us/web/api/taskcontroller/index.md index 4b6686d6f72814b..4136384f046842c 100644 --- a/files/en-us/web/api/taskcontroller/index.md +++ b/files/en-us/web/api/taskcontroller/index.md @@ -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 diff --git a/files/en-us/web/api/texttrackcuelist/getcuebyid/index.md b/files/en-us/web/api/texttrackcuelist/getcuebyid/index.md index 4ab085b2dc6790b..a8bd4c43522c28a 100644 --- a/files/en-us/web/api/texttrackcuelist/getcuebyid/index.md +++ b/files/en-us/web/api/texttrackcuelist/getcuebyid/index.md @@ -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 diff --git a/files/en-us/web/api/texttrackcuelist/length/index.md b/files/en-us/web/api/texttrackcuelist/length/index.md index 554dfa9565762c8..b0eba8afd030e1e 100644 --- a/files/en-us/web/api/texttrackcuelist/length/index.md +++ b/files/en-us/web/api/texttrackcuelist/length/index.md @@ -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 diff --git a/files/en-us/web/api/urlsearchparams/foreach/index.md b/files/en-us/web/api/urlsearchparams/foreach/index.md index 04b3c158312cff6..b51944337f8dbcd 100644 --- a/files/en-us/web/api/urlsearchparams/foreach/index.md +++ b/files/en-us/web/api/urlsearchparams/foreach/index.md @@ -55,7 +55,7 @@ searchParams.forEach((value, key) => { The result is: -``` +```plain value1 key1 value2 key2 ``` diff --git a/files/en-us/web/api/urlsearchparams/keys/index.md b/files/en-us/web/api/urlsearchparams/keys/index.md index 95342376ed5ab68..3108bcda8307e3f 100644 --- a/files/en-us/web/api/urlsearchparams/keys/index.md +++ b/files/en-us/web/api/urlsearchparams/keys/index.md @@ -43,7 +43,7 @@ for (const key of searchParams.keys()) { The result is: -``` +```plain key1 key2 ``` diff --git a/files/en-us/web/api/urlsearchparams/values/index.md b/files/en-us/web/api/urlsearchparams/values/index.md index 8833a30ed343f64..90e1824abbf3b30 100644 --- a/files/en-us/web/api/urlsearchparams/values/index.md +++ b/files/en-us/web/api/urlsearchparams/values/index.md @@ -43,7 +43,7 @@ for (const value of searchParams.values()) { The result is: -``` +```plain value1 value2 ``` @@ -58,7 +58,7 @@ console.log(Array.from(searchParams.values())); The result is: -``` +```plain ['value1', 'value2'] ``` diff --git a/files/en-us/web/api/user-agent_client_hints_api/index.md b/files/en-us/web/api/user-agent_client_hints_api/index.md index ba30a2d306ae4bc..36d9f695316f9ae 100644 --- a/files/en-us/web/api/user-agent_client_hints_api/index.md +++ b/files/en-us/web/api/user-agent_client_hints_api/index.md @@ -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 ``` diff --git a/files/en-us/web/api/view_transitions_api/index.md b/files/en-us/web/api/view_transitions_api/index.md index dab42c4c639a06e..e2ed59b7146270b 100644 --- a/files/en-us/web/api/view_transitions_api/index.md +++ b/files/en-us/web/api/view_transitions_api/index.md @@ -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) @@ -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) diff --git a/files/en-us/web/api/vrlayerinit/index.md b/files/en-us/web/api/vrlayerinit/index.md index 7ff41f684d8e8b9..3954007fd134074 100644 --- a/files/en-us/web/api/vrlayerinit/index.md +++ b/files/en-us/web/api/vrlayerinit/index.md @@ -55,10 +55,10 @@ if (navigator.getVRDisplays) { {{domxref("VRLayerInit")}} objects look something like this: -``` +```js { - leftBounds : [ /* … */ ], - rightBounds: [ /* … */ ], + leftBounds : [/* … */], + rightBounds: [/* … */], source: canvasReference } ``` diff --git a/files/en-us/web/api/web_audio_api/basic_concepts_behind_web_audio_api/index.md b/files/en-us/web/api/web_audio_api/basic_concepts_behind_web_audio_api/index.md index 2655267afdabb4a..14d5f0c7c7a9013 100644 --- a/files/en-us/web/api/web_audio_api/basic_concepts_behind_web_audio_api/index.md +++ b/files/en-us/web/api/web_audio_api/basic_concepts_behind_web_audio_api/index.md @@ -100,7 +100,7 @@ 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) ``` @@ -108,7 +108,7 @@ This structure is widespread in audio processing, making it easy to process each The alternative is to use an interleaved buffer format: -``` +```plain LRLRLRLRLRLRLRLRLRLRLRLRLRLRLRLR (for a buffer of 16 frames) ``` diff --git a/files/en-us/web/api/web_authentication_api/webauthn_extensions/index.md b/files/en-us/web/api/web_authentication_api/webauthn_extensions/index.md index af1bf2e95c5cd9a..9d30e0d06fa524e 100644 --- a/files/en-us/web/api/web_authentication_api/webauthn_extensions/index.md +++ b/files/en-us/web/api/web_authentication_api/webauthn_extensions/index.md @@ -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 } ``` @@ -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. diff --git a/files/en-us/web/api/web_crypto_api/non-cryptographic_uses_of_subtle_crypto/index.md b/files/en-us/web/api/web_crypto_api/non-cryptographic_uses_of_subtle_crypto/index.md index 1c20a42d9640be0..f3d8643b0f6faeb 100755 --- a/files/en-us/web/api/web_crypto_api/non-cryptographic_uses_of_subtle_crypto/index.md +++ b/files/en-us/web/api/web_crypto_api/non-cryptographic_uses_of_subtle_crypto/index.md @@ -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] diff --git a/files/en-us/web/api/webgl_api/webgl_best_practices/index.md b/files/en-us/web/api/webgl_api/webgl_best_practices/index.md index dfdab0f4ff23a87..1c292295ff35bb7 100644 --- a/files/en-us/web/api/webgl_api/webgl_best_practices/index.md +++ b/files/en-us/web/api/webgl_api/webgl_best_practices/index.md @@ -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 @@ -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; @@ -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; @@ -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 @@ -432,7 +432,7 @@ Most texture uploads from DOM elements will incur a processing pass that will te In WebGL: -``` +```glsl … useProgram(prog1) @@ -446,7 +446,7 @@ In WebGL: Behind the scenes in the browser: -``` +```glsl … useProgram(prog1) @@ -471,7 +471,7 @@ Prefer doing uploads before starting drawing, or at least between pipelines: In WebGL: -``` +```glsl … bindTexture(webgl_texture) texImage2D(HTMLVideoElement) @@ -486,7 +486,7 @@ In WebGL: Behind the scenes in the browser: -``` +```glsl … bindTexture(webgl_texture) -texImage2D(HTMLVideoElement): diff --git a/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md b/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md index 7de08a73707eb4c..03c6949758b038d 100644 --- a/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md +++ b/files/en-us/web/api/webglrenderingcontext/getcontextattributes/index.md @@ -46,7 +46,7 @@ gl.getContextAttributes(); the `getContextAttributes` method returns an object that describes the attributes set on this context, for example: -``` +```js { alpha: true, antialias: true, diff --git a/files/en-us/web/api/websockets_api/writing_a_websocket_server_in_java/index.md b/files/en-us/web/api/websockets_api/writing_a_websocket_server_in_java/index.md index 14ca787f77a5c80..a38285b5cd53842 100644 --- a/files/en-us/web/api/websockets_api/writing_a_websocket_server_in_java/index.md +++ b/files/en-us/web/api/websockets_api/writing_a_websocket_server_in_java/index.md @@ -115,7 +115,7 @@ After a successful handshake, client can send messages to the server, but now th If we send "abcdef", we get these bytes: -``` +```plain 129 134 167 225 225 210 198 131 130 182 194 135 ``` diff --git a/files/en-us/web/api/websockets_api/writing_websocket_server/index.md b/files/en-us/web/api/websockets_api/writing_websocket_server/index.md index 5e3e51a791932f6..0cbb3c30b37f145 100644 --- a/files/en-us/web/api/websockets_api/writing_websocket_server/index.md +++ b/files/en-us/web/api/websockets_api/writing_websocket_server/index.md @@ -167,7 +167,7 @@ After a successful handshake, the client will send encoded messages to the serve If we send "MDN", we get these bytes: -``` +```plain 129 131 61 84 35 6 112 16 109 ``` diff --git a/files/en-us/web/api/websockets_api/writing_websocket_servers/index.md b/files/en-us/web/api/websockets_api/writing_websocket_servers/index.md index 967ac645ed7836e..679ae7509695094 100644 --- a/files/en-us/web/api/websockets_api/writing_websocket_servers/index.md +++ b/files/en-us/web/api/websockets_api/writing_websocket_servers/index.md @@ -139,7 +139,7 @@ The FIN and opcode fields work together to send a message split up into separate Recall that the opcode tells what a frame is meant to do. If it's `0x1`, the payload is text. If it's `0x2`, the payload is binary data. However, if it's `0x0,` the frame is a continuation frame; this means the server should concatenate the frame's payload to the last frame it received from that client. Here is a rough sketch, in which a server reacts to a client sending text messages. The first message is sent in a single frame, while the second message is sent across three frames. FIN and opcode details are shown only for the client: -``` +```plain Client: FIN=1, opcode=0x1, msg="hello" Server: (process complete message immediately) Hi. Client: FIN=0, opcode=0x1, msg="and a" diff --git a/files/en-us/web/api/webxr_device_api/rendering/index.md b/files/en-us/web/api/webxr_device_api/rendering/index.md index 20b3a7264ab3c49..f055004375b03ef 100644 --- a/files/en-us/web/api/webxr_device_api/rendering/index.md +++ b/files/en-us/web/api/webxr_device_api/rendering/index.md @@ -128,7 +128,7 @@ Ideally, you want this code to be fast enough that it can maintain a 60 FPS fram In this version of the WebXR rendering callback, we use a very straightforward approach that works great for relatively simple projects. This pseudocode outlines that process: -``` +```plain for each view in the pose's views list: get the WebXR GL layer's viewport set the WebGL viewport to match @@ -225,7 +225,7 @@ An advantage of WebXR's approach of using a single WebGL framebuffer to contain The resulting pseudocode looks like this: -``` +```plain for each object in the scene bindProgram() bindUniforms() diff --git a/files/en-us/web/api/workerglobalscope/location/index.md b/files/en-us/web/api/workerglobalscope/location/index.md index 06b346f7fabe454..9b3af10af3db27c 100644 --- a/files/en-us/web/api/workerglobalscope/location/index.md +++ b/files/en-us/web/api/workerglobalscope/location/index.md @@ -24,7 +24,7 @@ console.log(location); inside a worker (which would basically be the equivalent of `self.console.log(self.location);`, as these are being called on the worker scope, which can be referenced with {{domxref("WorkerGlobalScope.self")}}), you will get a {{domxref("WorkerLocation")}} object written to the console — something like the following: -``` +```plain WorkerLocation {hash: "", search: "", pathname: "/worker.js", port: "8000", hostname: "localhost"…} hash: "" host: "localhost:8000" diff --git a/files/en-us/web/api/workerglobalscope/navigator/index.md b/files/en-us/web/api/workerglobalscope/navigator/index.md index e685c1ced9223c9..1f5a6482099c414 100644 --- a/files/en-us/web/api/workerglobalscope/navigator/index.md +++ b/files/en-us/web/api/workerglobalscope/navigator/index.md @@ -24,7 +24,7 @@ console.log(navigator); inside a worker (which would basically be the equivalent of `self.console.log(self.navigator);`, as these are being called on the worker scope, which can be referenced with {{domxref("WorkerGlobalScope.self")}}), you will get a {{domxref("WorkerNavigator")}} object written to the console — something like the following: -``` +```plain Object {onLine: true, userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) Ap…ML, like Gecko) Chrome/40.0.2214.93 Safari/537.36", product: "Gecko", platform: "MacIntel", appVersion: "5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKi…ML, like Gecko) Chrome/40.0.2214.93 Safari/537.36"…} appCodeName: "Mozilla" appName: "Netscape" diff --git a/files/en-us/web/api/workerglobalscope/self/index.md b/files/en-us/web/api/workerglobalscope/self/index.md index ccb41457b5aae43..2dfbc94e4712abd 100644 --- a/files/en-us/web/api/workerglobalscope/self/index.md +++ b/files/en-us/web/api/workerglobalscope/self/index.md @@ -24,7 +24,7 @@ console.log(self); inside a worker, you will get a worker global scope of the same type as that worker object written to the console — something like the following: -``` +```plain DedicatedWorkerGlobalScope { undefined: undefined, Infinity: Infinity, Math: MathConstructor, NaN: NaN, Intl: Object…} Infinity: Infinity diff --git a/files/en-us/web/api/workernavigator/useragent/index.md b/files/en-us/web/api/workernavigator/useragent/index.md index 6a37fdb7f039c41..60bd5ee116ef7fc 100644 --- a/files/en-us/web/api/workernavigator/useragent/index.md +++ b/files/en-us/web/api/workernavigator/useragent/index.md @@ -42,7 +42,7 @@ several pieces of info. Each of these pieces of info comes from other navigator properties which are also settable by the user. Gecko-based browsers comply with the following general structure: -``` +```plain userAgent = appCodeName/appVersion number (Platform; Security; OS-or-CPU; Localization; rv: revision-version-number) product/productSub Application-Name Application-Name-version diff --git a/files/en-us/web/api/xmlhttprequest/synchronous_and_asynchronous_requests/index.md b/files/en-us/web/api/xmlhttprequest/synchronous_and_asynchronous_requests/index.md index 84c89aca4729b02..a6960a8d99525d9 100644 --- a/files/en-us/web/api/xmlhttprequest/synchronous_and_asynchronous_requests/index.md +++ b/files/en-us/web/api/xmlhttprequest/synchronous_and_asynchronous_requests/index.md @@ -181,7 +181,7 @@ One of the few cases in which a synchronous request does not usually block execu **`myFile.txt`** (the target of the synchronous {{domxref('XMLHttpRequest')}} invocation): -``` +```plain Hello World!! ``` diff --git a/files/en-us/web/api/xsltprocessor/basic_example/index.md b/files/en-us/web/api/xsltprocessor/basic_example/index.md index 7eb9ef22941acfe..bd9521a1550927d 100644 --- a/files/en-us/web/api/xsltprocessor/basic_example/index.md +++ b/files/en-us/web/api/xsltprocessor/basic_example/index.md @@ -62,7 +62,7 @@ To try out the example: 3. Open **example.xml** from the browser. 4. The browser output is then as shown below: - ``` + ```plain Browser Output : Article - My Article diff --git a/files/en-us/web/css/-webkit-mask-box-image/index.md b/files/en-us/web/css/-webkit-mask-box-image/index.md index 41ad849a9295578..d199521cfe67f08 100644 --- a/files/en-us/web/css/-webkit-mask-box-image/index.md +++ b/files/en-us/web/css/-webkit-mask-box-image/index.md @@ -84,7 +84,7 @@ Border repeat styles, when included, are interpreted in the order of ` ## Formal syntax -``` +```plain -webkit-mask-box-image: [{4} {1,2} ] Where: diff --git a/files/en-us/web/css/@charset/index.md b/files/en-us/web/css/@charset/index.md index 6add216c4e6ccac..bbb30a95b9c0e7b 100644 --- a/files/en-us/web/css/@charset/index.md +++ b/files/en-us/web/css/@charset/index.md @@ -32,7 +32,7 @@ As there are several ways to define the character encoding of a style sheet, the ### Formal syntax -``` +```plain @charset ""; ``` diff --git a/files/en-us/web/css/@counter-style/system/index.md b/files/en-us/web/css/@counter-style/system/index.md index 31e6503c73b7698..264e402b35eacbc 100644 --- a/files/en-us/web/css/@counter-style/system/index.md +++ b/files/en-us/web/css/@counter-style/system/index.md @@ -79,7 +79,7 @@ This may take one of three forms: If your browser supports it, this example will render a list like this: -``` +```plain ◉ One ◉ Two ◉ Three @@ -115,7 +115,7 @@ ul { If your browser supports it, this example will render a list like this: -``` +```plain ➀ One ➁ Two ➂ Three @@ -155,7 +155,7 @@ ul { If your browser supports it, this example will render a list like this: -``` +```plain a. One b. Two c. Three @@ -201,7 +201,7 @@ ul { If your browser supports it, this example will render a list like this: -``` +```plain a. One b. Two c. Three @@ -247,7 +247,7 @@ ul { If your browser supports it, this example will render a list like this: -``` +```plain b. One c. Two ba. Three diff --git a/files/en-us/web/css/@document/index.md b/files/en-us/web/css/@document/index.md index 4a4497733948ab1..c76fe6f6247650a 100644 --- a/files/en-us/web/css/@document/index.md +++ b/files/en-us/web/css/@document/index.md @@ -46,7 +46,7 @@ Escaped values provided to the `regexp()` function must additionally be escaped ## Formal syntax -``` +```plain @document [ | url-prefix() | domain() | diff --git a/files/en-us/web/css/@page/index.md b/files/en-us/web/css/@page/index.md index 55a5029ae861ecf..4ad1b7815c4b039 100644 --- a/files/en-us/web/css/@page/index.md +++ b/files/en-us/web/css/@page/index.md @@ -164,7 +164,7 @@ The margin at-rules are used inside of the `@page` at-rule. They each target a d Other margin-at rules include: -``` +```plain @top-left-corner { } diff --git a/files/en-us/web/css/_colon_current/index.md b/files/en-us/web/css/_colon_current/index.md index ef823acafa1e135..21947dacd2bf3bd 100644 --- a/files/en-us/web/css/_colon_current/index.md +++ b/files/en-us/web/css/_colon_current/index.md @@ -55,7 +55,7 @@ The **`:current`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS ### WebVTT -``` +```plain WEBVTT FILE 1 diff --git a/files/en-us/web/css/_colon_future/index.md b/files/en-us/web/css/_colon_future/index.md index 5724ca394167f19..0026ff8523fb335 100644 --- a/files/en-us/web/css/_colon_future/index.md +++ b/files/en-us/web/css/_colon_future/index.md @@ -52,7 +52,7 @@ The **`:future`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/ ### WebVTT -``` +```plain WEBVTT FILE 1 diff --git a/files/en-us/web/css/_colon_past/index.md b/files/en-us/web/css/_colon_past/index.md index f2d522eb64e40a1..1a290df57bd57e0 100644 --- a/files/en-us/web/css/_colon_past/index.md +++ b/files/en-us/web/css/_colon_past/index.md @@ -52,7 +52,7 @@ The **`:past`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Ps ### WebVTT -``` +```plain WEBVTT FILE 1 diff --git a/files/en-us/web/css/_colon_target/index.md b/files/en-us/web/css/_colon_target/index.md index ad1b23342cf2311..706239adf993430 100644 --- a/files/en-us/web/css/_colon_target/index.md +++ b/files/en-us/web/css/_colon_target/index.md @@ -18,7 +18,7 @@ The **`:target`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/ For example, the following URL has a fragment (denoted by the _#_ sign) that points to an element called `section2`: -``` +```url http://www.example.com/index.html#section2 ``` diff --git a/files/en-us/web/css/_doublecolon_highlight/index.md b/files/en-us/web/css/_doublecolon_highlight/index.md index 0443968efee3b81..4e519fcdb130905 100644 --- a/files/en-us/web/css/_doublecolon_highlight/index.md +++ b/files/en-us/web/css/_doublecolon_highlight/index.md @@ -27,7 +27,7 @@ In particular, {{CSSxRef("background-image")}} is ignored. ## Syntax -``` +```css-nolint ::highlight(custom-highlight-name) ``` diff --git a/files/en-us/web/css/background-position/index.md b/files/en-us/web/css/background-position/index.md index 65f7b7539b7e412..d8bc773c872e56b 100644 --- a/files/en-us/web/css/background-position/index.md +++ b/files/en-us/web/css/background-position/index.md @@ -87,20 +87,20 @@ The percentage offset of the given background image's position is relative to th Essentially what happens is the background image dimension is _subtracted_ from the corresponding container dimension, and then a percentage of the resulting value is used as the direct offset from the left (or top) edge. -``` +```plain (container width - image width) * (position x%) = (x offset value) (container height - image height) * (position y%) = (y offset value) ``` Using the X axis for an example, let's say we have an image that is 300px wide and we are using it in a container that is 100px wide, with background-size set to auto: -``` +```plain 100px - 300px = -200px (container & image difference) ``` So that with position percentages of -25%, 0%, 50%, 100%, 125%, we get these image-to-container edge offset values: -``` +```plain -200px * -25% = 50px -200px * 0% = 0px -200px * 50% = -100px diff --git a/files/en-us/web/css/color-interpolation-method/index.md b/files/en-us/web/css/color-interpolation-method/index.md index 33d51859df8de00..ff922fcb3f15bf8 100644 --- a/files/en-us/web/css/color-interpolation-method/index.md +++ b/files/en-us/web/css/color-interpolation-method/index.md @@ -23,7 +23,7 @@ When interpolating `` values, the interpolation color space defaults to O The `` specifies whether interpolation should use a rectangular color space or a polar color space with an optional hue interpolation method: -``` +```plain in // or in [ ] diff --git a/files/en-us/web/css/css_counter_styles/using_css_counters/index.md b/files/en-us/web/css/css_counter_styles/using_css_counters/index.md index 7268278b6e8d8c7..a5ab08ebe5b7c01 100644 --- a/files/en-us/web/css/css_counter_styles/using_css_counters/index.md +++ b/files/en-us/web/css/css_counter_styles/using_css_counters/index.md @@ -71,7 +71,7 @@ h3::before { The {{cssxref("counter", "counter()")}} function is used when the numbering of nesting levels does not include the context of parent levels. For example, here each nested level restarts from one: -``` +```plain 1 One 1 Nested one 2 Nested two @@ -85,7 +85,7 @@ For example, here each nested level restarts from one: The {{cssxref("counters", "counters()")}} function is used when the count for nested levels must include the count from parent levels. For example, you might use this to lay out sections as shown: -``` +```plain 1 One 1.1 Nested one 1.2 Nested two diff --git a/files/en-us/web/css/hex-color/index.md b/files/en-us/web/css/hex-color/index.md index a1aacd6fcd75bda..8ab4c10fc8fc2b1 100644 --- a/files/en-us/web/css/hex-color/index.md +++ b/files/en-us/web/css/hex-color/index.md @@ -13,7 +13,7 @@ A `` value can be used everywhere where a [``](/en-US/docs/Web ## Syntax -``` +```plain #RGB // The three-value syntax #RGBA // The four-value syntax #RRGGBB // The six-value syntax diff --git a/files/en-us/web/css/hue-interpolation-method/index.md b/files/en-us/web/css/hue-interpolation-method/index.md index 6de8a86018de41e..92fda8ac87683e7 100644 --- a/files/en-us/web/css/hue-interpolation-method/index.md +++ b/files/en-us/web/css/hue-interpolation-method/index.md @@ -25,7 +25,7 @@ When interpolating `` values, the hue interpolation algorithm defaults to [ A `` value consists of the name of a hue interpolation algorithm followed by a literal token `hue`: -``` +```plain shorter hue longer hue increasing hue diff --git a/files/en-us/web/exslt/exsl/node-set/index.md b/files/en-us/web/exslt/exsl/node-set/index.md index 49028df84ae3a95..e70bad1ac5f168b 100644 --- a/files/en-us/web/exslt/exsl/node-set/index.md +++ b/files/en-us/web/exslt/exsl/node-set/index.md @@ -12,7 +12,7 @@ You can also use `exsl:node-set()` to turn strings into text nodes. ## Syntax -``` +```plain exsl:node-set(object) ``` diff --git a/files/en-us/web/exslt/math/min/index.md b/files/en-us/web/exslt/math/min/index.md index 1ed3ba6df0d0b4c..74bc318a3ac4857 100644 --- a/files/en-us/web/exslt/math/min/index.md +++ b/files/en-us/web/exslt/math/min/index.md @@ -12,7 +12,7 @@ To compute the minimum value of the node-set, the node set is sorted into ascend ## Syntax -``` +```plain math:min(nodeSet) ``` diff --git a/files/en-us/web/exslt/regexp/match/index.md b/files/en-us/web/exslt/regexp/match/index.md index 972ae59ae1e9679..b28eeb4f4355bcf 100644 --- a/files/en-us/web/exslt/regexp/match/index.md +++ b/files/en-us/web/exslt/regexp/match/index.md @@ -45,7 +45,7 @@ For example: This code generates the following output: -``` +```plain Part 1 = https://developer.mozilla.org/en/docs/Firefox_3_for_developers Part 2 = https Part 3 = developer.mozilla.org diff --git a/files/en-us/web/guide/ajax/index.md b/files/en-us/web/guide/ajax/index.md index bd898a01511357d..77e295f66968f9f 100644 --- a/files/en-us/web/guide/ajax/index.md +++ b/files/en-us/web/guide/ajax/index.md @@ -56,7 +56,7 @@ httpRequest.send(); The parameter to the `send()` method can be any data you want to send to the server if `POST`-ing the request. Form data should be sent in a format that the server can parse, like a query string: -``` +```plain "name=value&anothername="+encodeURIComponent(myVar)+"&so=on" ``` @@ -288,7 +288,7 @@ For more on DOM methods, be sure to check out [Document Object Model (DOM)](/en- Another simple example follows — here we are loading a text file via XHR, the structure of which is assumed to be like this: -``` +```plain TIME: 312.05 TIME: 312.07 TIME: 312.10 diff --git a/files/en-us/web/guide/audio_and_video_delivery/adding_captions_and_subtitles_to_html5_video/index.md b/files/en-us/web/guide/audio_and_video_delivery/adding_captions_and_subtitles_to_html5_video/index.md index b06545e700f5789..e85d09c0a3dda93 100644 --- a/files/en-us/web/guide/audio_and_video_delivery/adding_captions_and_subtitles_to_html5_video/index.md +++ b/files/en-us/web/guide/audio_and_video_delivery/adding_captions_and_subtitles_to_html5_video/index.md @@ -284,7 +284,7 @@ For example, to change the text color of the text track cues you can write: If the WebVTT file uses [voice spans](https://w3c.github.io/webvtt/#dfn-webvtt-cue-voice-span), which allow cues to be defined as having a particular "voice": -``` +```plain 0 00:00:00.000 --> 00:00:12.000 [Test] diff --git a/files/en-us/web/guide/audio_and_video_delivery/index.md b/files/en-us/web/guide/audio_and_video_delivery/index.md index 4c66cd8d20224bc..363c818ff60917d 100644 --- a/files/en-us/web/guide/audio_and_video_delivery/index.md +++ b/files/en-us/web/guide/audio_and_video_delivery/index.md @@ -349,7 +349,7 @@ When specifying the URI of media for an {{ HTMLElement("audio") }} or {{ HTMLEle A time range is specified using the syntax: -``` +```plain #t=[starttime][,endtime] ``` @@ -410,7 +410,7 @@ If these work but the files you are supplying don't, there are two possible issu Although this is usually supported, you may need to add the following to your media server's `.htaccess` file. -``` +```plain # AddType TYPE/SUBTYPE EXTENSION AddType audio/mpeg mp3 diff --git a/files/en-us/web/guide/audio_and_video_delivery/setting_up_adaptive_streaming_media_sources/index.md b/files/en-us/web/guide/audio_and_video_delivery/setting_up_adaptive_streaming_media_sources/index.md index c7cf4a8e890c984..db0df32806834c2 100644 --- a/files/en-us/web/guide/audio_and_video_delivery/setting_up_adaptive_streaming_media_sources/index.md +++ b/files/en-us/web/guide/audio_and_video_delivery/setting_up_adaptive_streaming_media_sources/index.md @@ -116,7 +116,7 @@ A useful piece of software when dealing with MPEG-DASH is [Dash Encoder](https:/ Once encoded your file structure may look something like this: -``` +```plain play list -> /segments/news.mp4.mpd main segment folder -> /segments/main/ @@ -223,7 +223,7 @@ There are a number of useful tools available for HLS encoding The HLS Index File (much like MPEG-DASH's `.mpd` file) contains the information on where all the media segments reside, as well as other metadata such as bandwidth application. Apple uses the `.m3u8` format (an extension of its `.m3u` playlist format) for index files — see below for an example: -``` +```plain #EXT-X-VERSION:3 #EXTM3U #EXT-X-TARGETDURATION:10 diff --git a/files/en-us/web/html/element/audio/index.md b/files/en-us/web/html/element/audio/index.md index d01ae4664ded5ce..ad95875656258c0 100644 --- a/files/en-us/web/html/element/audio/index.md +++ b/files/en-us/web/html/element/audio/index.md @@ -349,7 +349,7 @@ The `