Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 12 (#20624)
Browse files Browse the repository at this point in the history
* Tag syntax code blocks with js-nolint, part 12

Adding to #19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017

* Update files/en-us/web/api/window/showdirectorypicker/index.md

* Update files/en-us/web/api/webgl_multi_draw/multidrawarraysinstancedwebgl/index.md

* Update files/en-us/web/api/webgl_multi_draw/multidrawarrayswebgl/index.md

* Update files/en-us/web/api/webgl_multi_draw/multidrawelementsinstancedwebgl/index.md

* Update files/en-us/web/api/webgl_multi_draw/multidrawelementswebgl/index.md

* Update files/en-us/web/api/webglrenderingcontext/attachshader/index.md

* Update files/en-us/web/api/webglrenderingcontext/detachshader/index.md

* Update files/en-us/web/api/window/showdirectorypicker/index.md

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
OnkarRuikar and teoli2003 authored Sep 13, 2022
1 parent b9bcca1 commit c575deb
Show file tree
Hide file tree
Showing 200 changed files with 209 additions and 209 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ source for pixels for subsequent calls to

## Syntax

```js
```js-nolint
readBuffer(source)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ samples to be used.

## Syntax

```js
```js-nolint
renderbufferStorageMultisample(target, samples, internalFormat, width, height)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ transform feedback operation.

## Syntax

```js
```js-nolint
resumeTransformFeedback()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ of the [WebGL 2 API](/en-US/docs/Web/API/WebGL_API) set

## Syntax

```js
```js-nolint
samplerParameteri(sampler, pname, param)
samplerParameterf(sampler, pname, param)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ texture image.

## Syntax

```js
```js-nolint
texImage3D(target, level, internalformat, width, height, depth, border, format, type, offset)
texImage3D(target, level, internalformat, width, height, depth, border, format, type, source)
texImage3D(target, level, internalformat, width, height, depth, border, format, type, srcData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ two-dimensional texture storage.

## Syntax

```js
```js-nolint
texStorage2D(target, levels, internalformat, width, height)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ three-dimensional texture or two-dimensional array texture.

## Syntax

```js
```js-nolint
texStorage3D(target, levels, internalformat, width, height, depth)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ current texture.

## Syntax

```js
```js-nolint
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels)
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, offset)
texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ to record in {{domxref("WebGLTransformFeedback")}} buffers.

## Syntax

```js
```js-nolint
transformFeedbackVaryings(program, varyings, bufferMode)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uniform variables.
## Syntax

```js
```js-nolint
uniform1ui(location, v0)
uniform2ui(location, v0, v1)
uniform3ui(location, v0, v1, v2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for active uniform blocks.

## Syntax

```js
```js-nolint
uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ values for uniform variables.
## Syntax

```js
```js-nolint
uniformMatrix2fv(location, transpose, data)
uniformMatrix2fv(location, transpose, data, srcOffset)
uniformMatrix2fv(location, transpose, data, srcOffset, srcLength)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ with {{domxref("WebGL2RenderingContext.drawArraysInstanced()",
## Syntax

```js
```js-nolint
vertexAttribDivisor(index, divisor)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ values for generic vertex attributes.

## Syntax

```js
```js-nolint
vertexAttribI4i(index, v0, v1, v2, v3)
vertexAttribI4ui(index, v0, v1, v2, v3)
vertexAttribI4iv(index, value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ formats and locations of vertex attributes in a vertex attributes array.

## Syntax

```js
```js-nolint
vertexAttribIPointer(index, size, type, stride, offset)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ multiple GL contexts.

## Syntax

```js
```js-nolint
waitSync(sync, flags, timeout)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ by the implementation.

## Syntax

```js
```js-nolint
getSupportedProfiles()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ you to debug a translated shader.

## Syntax

```js
```js-nolint
getTranslatedShaderSource(shader)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This method is part of the {{domxref("WEBGL_draw_buffers")}} extension.
## Syntax

```js
```js-nolint
drawBuffersWEBGL(buffers)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ called.

## Syntax

```js
```js-nolint
loseContext()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ restoring the context of a {{domxref("WebGLRenderingContext")}} object.

## Syntax

```js
```js-nolint
restoreContext()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ method.

## Syntax

```js
void ext.multiDrawArraysInstancedWEBGL(mode,
```js-nolint
multiDrawArraysInstancedWEBGL(mode,
firstsList, firstsOffset,
countsList, countsOffset,
instanceCountsList, instanceCountsOffset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ method.

## Syntax

```js
void ext.multiDrawArraysWEBGL(mode,
```js-nolint
multiDrawArraysWEBGL(mode,
firstsList, firstsOffset,
countsList, countsOffset,
drawCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ method.

## Syntax

```js
void ext.multiDrawElementsInstancedWEBGL(mode,
```js-nolint
multiDrawElementsInstancedWEBGL(mode,
countsList, countsOffset,
type,
firstsList, firstsOffset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ method.

## Syntax

```js
void ext.multiDrawElementsWEBGL(mode,
```js-nolint
multiDrawElementsWEBGL(mode,
countsList, countsOffset,
type,
firstsList, firstsOffset,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ make active.

## Syntax

```js
```js-nolint
activeTexture(texture)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ vertex {{domxref("WebGLShader")}} to a {{domxref("WebGLProgram")}}.

## Syntax

```js
void gl.attachShader(program, shader);
```js-nolint
attachShader(program, shader)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ to an attribute variable.

## Syntax

```js
```js-nolint
bindAttribLocation(program, index, name)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`WebGLRenderingContext.bindBuffer()`** method of the [WebGL API](/en-US/do

## Syntax

```js
```js-nolint
bindBuffer(target, buffer)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`WebGLRenderingContext.bindFramebuffer()`** method of the

## Syntax

```js
```js-nolint
bindFramebuffer(target, framebuffer)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the [WebGL API](/en-US/docs/Web/API/WebGL_API) binds a given

## Syntax

```js
```js-nolint
bindRenderbuffer(target, renderbuffer)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`WebGLRenderingContext.bindTexture()`** method of the [WebGL API](/en-US/d

## Syntax

```js
```js-nolint
bindTexture(target, texture)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ destination blending factors.

## Syntax

```js
```js-nolint
blendColor(red, green, blue, alpha)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The blend equation determines how a new pixel is combined with a pixel already i

## Syntax

```js
```js-nolint
blendEquation(mode)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The blend equation determines how a new pixel is combined with a pixel already i

## Syntax

```js
```js-nolint
blendEquationSeparate(modeRGB, modeAlpha)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ blending pixel arithmetic.

## Syntax

```js
```js-nolint
blendFunc(sfactor, dfactor)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for blending pixel arithmetic for RGB and alpha components separately.

## Syntax

```js
```js-nolint
blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buffer object's data store.

## Syntax

```js
```js-nolint
// WebGL1
bufferData(target, usage)
bufferData(target, size, usage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object's data store.

## Syntax

```js
```js-nolint
// WebGL1
bufferSubData(target, offset)
bufferSubData(target, offset, srcData)
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/webglrenderingcontext/canvas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ object.

## Syntax

```js
gl.canvas;
```js-nolint
gl.canvas
```

### Return value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ status of the {{domxref("WebGLFramebuffer")}} object.

## Syntax

```js
```js-nolint
checkFramebufferStatus(target)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/webglrenderingcontext/clear/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ method.

## Syntax

```js
```js-nolint
clear(mask)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ between 0 and 1.

## Syntax

```js
```js-nolint
clearColor(red, green, blue, alpha)
```

Expand Down
Loading

0 comments on commit c575deb

Please sign in to comment.