Skip to content

Commit

Permalink
Add syntax highlighting to Web IDL examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kubo da Costa committed Dec 14, 2021
1 parent f9caadf commit ec27b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ it does not need to [=request permission to use|request permission to use=] magn
for accuracy or [=sampling frequency=]. An example for a possible extension of the Permission API
for accelerometer sensor is given below.

<pre class=example>
<pre class="example" highlight="idl">
dictionary AccelerometerPermissionDescriptor : PermissionDescriptor {
boolean highAccuracy = false;
boolean highFrequency = false;
Expand Down Expand Up @@ -2153,7 +2153,7 @@ that are required by the absolute orientation sensor.
Here's an example WebIDL for a possible extension of this specification
for proximity [=device sensor|sensors=].

<pre class=example>
<pre class="example" highlight="idl">
[SecureContext, Exposed=Window]
interface ProximitySensor : Sensor {
constructor(optional ProximitySensorOptions proximitySensorOptions = {});
Expand Down

0 comments on commit ec27b1f

Please sign in to comment.