Skip to content

Commit de001e4

Browse files
committed
Examples: fix syntax-block in correct template location
1 parent 9e63091 commit de001e4

163 files changed

Lines changed: 431 additions & 443 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/acceleration-with-vectors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h1>Acceleration With Vectors</h1>
121121
<span>acceleration-with-vectors.pde</span>
122122
<button class="copy-btn" onclick="copyCode()">Copy</button>
123123
</div>
124-
<pre id="code-pre">/**
124+
<div class="syntax-block">/**
125125
* Acceleration with Vectors
126126
* by Daniel Shiffman.
127127
*
@@ -146,7 +146,7 @@ <h1>Acceleration With Vectors</h1>
146146
// Display the Mover
147147
mover-&gt;display();
148148
}
149-
</pre>
149+
</div>
150150
</div>
151151
</div>
152152
<footer>

examples/additive-wave.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h1>Additive Wave</h1>
149149
<span>additive-wave.pde</span>
150150
<button class="copy-btn" onclick="copyCode()">Copy</button>
151151
</div>
152-
<pre id="code-pre">/**
152+
<div class="syntax-block">/**
153153
* Additive Wave
154154
* by Daniel Shiffman.
155155
*
@@ -207,7 +207,7 @@ <h1>Additive Wave</h1>
207207
calcWave();
208208
renderWave();
209209
}
210-
</pre>
210+
</div>
211211
</div>
212212
</div>
213213
<footer>

examples/alpha-mask.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h1>Alpha Mask</h1>
9696
<span>alpha-mask.pde</span>
9797
<button class="copy-btn" onclick="copyCode()">Copy</button>
9898
</div>
99-
<pre id="code-pre">/**
99+
<div class="syntax-block">/**
100100
* Alpha Mask.
101101
*
102102
* Loads a "mask" for an image to specify the transparency
@@ -124,7 +124,7 @@ <h1>Alpha Mask</h1>
124124
image(img, width / 2, height / 2);
125125
image(img, mouseX, mouseY);
126126
}
127-
</pre>
127+
</div>
128128
</div>
129129
</div>
130130
<footer>

examples/animated-sprite.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h1>Animated Sprite</h1>
124124
<span>animated-sprite.pde</span>
125125
<button class="copy-btn" onclick="copyCode()">Copy</button>
126126
</div>
127-
<pre id="code-pre">/**
127+
<div class="syntax-block">/**
128128
* Animated Sprite (Shifty + Teddy)
129129
* by James Paterson.
130130
* Translated to C++ Mode.
@@ -178,7 +178,7 @@ <h1>Animated Sprite</h1>
178178
animation2-&gt;display(xpos - animation2-&gt;getWidth() / 2, ypos);
179179
}
180180
}
181-
</pre>
181+
</div>
182182
</div>
183183
</div>
184184
<footer>

examples/arctangent.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ <h1>Arctangent</h1>
129129
<span>arctangent.pde</span>
130130
<button class="copy-btn" onclick="copyCode()">Copy</button>
131131
</div>
132-
<pre id="code-pre">/**
132+
<div class="syntax-block">/**
133133
* Arctangent.
134134
*
135135
* Move the mouse to change the direction of the eyes.
@@ -173,7 +173,7 @@ <h1>Arctangent</h1>
173173
e2.update(mouseX, mouseY); e2.display();
174174
e3.update(mouseX, mouseY); e3.display();
175175
}
176-
</pre>
176+
</div>
177177
</div>
178178
</div>
179179
<footer>

examples/arm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h1>Arm</h1>
106106
<span>arm.pde</span>
107107
<button class="copy-btn" onclick="copyCode()">Copy</button>
108108
</div>
109-
<pre id="code-pre">/**
109+
<div class="syntax-block">/**
110110
* Arm.
111111
*
112112
* The angle of each segment is controlled with the mouseX and
@@ -147,7 +147,7 @@ <h1>Arm</h1>
147147
rotate(a);
148148
line(0, 0, segLength, 0);
149149
}
150-
</pre>
150+
</div>
151151
</div>
152152
</div>
153153
<footer>

examples/array-2d.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h1>Array 2D</h1>
105105
<span>array-2d.pde</span>
106106
<button class="copy-btn" onclick="copyCode()">Copy</button>
107107
</div>
108-
<pre id="code-pre">/**
108+
<div class="syntax-block">/**
109109
* Array 2D.
110110
*
111111
* Demonstrates the syntax for creating a two-dimensional (2D) array.
@@ -142,7 +142,7 @@ <h1>Array 2D</h1>
142142
}
143143
}
144144
}
145-
</pre>
145+
</div>
146146
</div>
147147
</div>
148148
<footer>

examples/array-objects.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h1>Array Objects</h1>
145145
<span>array-objects.pde</span>
146146
<button class="copy-btn" onclick="copyCode()">Copy</button>
147147
</div>
148-
<pre id="code-pre">/**
148+
<div class="syntax-block">/**
149149
* Array Objects.
150150
*
151151
* Demonstrates the syntax for creating an array of custom objects.
@@ -209,7 +209,7 @@ <h1>Array Objects</h1>
209209
mods[i].display();
210210
}
211211
}
212-
</pre>
212+
</div>
213213
</div>
214214
</div>
215215
<footer>

examples/array.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h1>Array</h1>
113113
<span>array.pde</span>
114114
<button class="copy-btn" onclick="copyCode()">Copy</button>
115115
</div>
116-
<pre id="code-pre">/**
116+
<div class="syntax-block">/**
117117
* Array.
118118
*
119119
* An array is a list of data. Each piece of data in an array
@@ -158,7 +158,7 @@ <h1>Array</h1>
158158
line(i, y1, i, y2);
159159
}
160160
}
161-
</pre>
161+
</div>
162162
</div>
163163
</div>
164164
<footer>

examples/arraylist-of-objects.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h1>ArrayList of objects</h1>
125125
<span>arraylist-of-objects.pde</span>
126126
<button class="copy-btn" onclick="copyCode()">Copy</button>
127127
</div>
128-
<pre id="code-pre">class Ball {
128+
<div class="syntax-block">class Ball {
129129
public:
130130
float x;
131131
float y;
@@ -180,7 +180,7 @@ <h1>ArrayList of objects</h1>
180180
void mousePressed() {
181181
balls.add(new Ball(mouseX, mouseY, ballWidth));
182182
}
183-
</pre>
183+
</div>
184184
</div>
185185
</div>
186186
<footer>

0 commit comments

Comments
 (0)