Skip to content

Commit 182a367

Browse files
authored
Merge pull request #428 from rakuco/highlight-idl-examples
Add syntax highlighting to Web IDL examples.
2 parents f9caadf + ec27b1f commit 182a367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ it does not need to [=request permission to use|request permission to use=] magn
20922092
for accuracy or [=sampling frequency=]. An example for a possible extension of the Permission API
20932093
for accelerometer sensor is given below.
20942094

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

2156-
<pre class=example>
2156+
<pre class="example" highlight="idl">
21572157
[SecureContext, Exposed=Window]
21582158
interface ProximitySensor : Sensor {
21592159
constructor(optional ProximitySensorOptions proximitySensorOptions = {});

0 commit comments

Comments
 (0)