Skip to content

Commit bdd9980

Browse files
committed
Fix c++ code escape markup
1 parent 8bb94c4 commit bdd9980

11 files changed

+38
-38
lines changed

docs/modules/ROOT/pages/elements.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ of elements that can be used with templates and template functions. The
2222
`element` class, while the `ElementPtr` concept constrains the type of a
2323
pointer to an element.
2424

25-
[,c++]
25+
[source,c++]
2626
----
2727
namespace concepts
2828
{
@@ -50,7 +50,7 @@ There are a couple of type aliases that are useful when dealing
5050
with shared pointers:
5151

5252
==== Type aliases
53-
[,c++]
53+
[source,c++]
5454
----
5555
using element_ptr = std::shared_ptr<element>;
5656
using element_const_ptr = std::shared_ptr<element const>;
@@ -68,7 +68,7 @@ using weak_element_const_ptr = std::weak_ptr<element const>;
6868

6969
==== Expressions
7070

71-
[,c++]
71+
[source,c++]
7272
----
7373
share(e) // <1>
7474
get(ep) // <2>

docs/modules/ROOT/pages/elements/button_stylers.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ appearance. The result is then passed to one of the button creation functions
270270

271271
Make a default momentary button with label "My Button":
272272

273-
[,c++]
273+
[source,c++]
274274
----
275275
auto btn = momentary_button(
276276
button_styler{"My Button"}
@@ -279,7 +279,7 @@ auto btn = momentary_button(
279279

280280
Make a blue momentary button with label "Lock":
281281

282-
[,c++]
282+
[source,c++]
283283
----
284284
auto btn = momentary_button(
285285
button_styler{"Lock"}
@@ -290,7 +290,7 @@ auto btn = momentary_button(
290290
Make a momentary button with label "Rounded Left" and a `left_circled` icon,
291291
aligned to the left, with a rounded left corner of 10 pixels:
292292

293-
[,c++]
293+
[source,c++]
294294
----
295295
auto btn = momentary_button(
296296
button_styler{"Rounded Left"}

docs/modules/ROOT/pages/elements/buttons.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ slide switches, checkboxes, and more.
2727

2828
=== Declaration
2929

30-
[,c++]
30+
[source,c++]
3131
----
3232
class basic_button; // Base class for momentary buttons
3333
class basic_toggle_button; // Base class for toggle buttons
@@ -36,7 +36,7 @@ class basic_latching_button; // Base class for latching buttons
3636

3737
=== Concepts
3838

39-
[,c++]
39+
[source,c++]
4040
----
4141
namespace concepts
4242
{
@@ -174,7 +174,7 @@ The `state` argument indicates whether the button is ON (`true`) or OFF
174174

175175
=== Example
176176

177-
[,c++]
177+
[source,c++]
178178
----
179179
btn.on_click =
180180
[](bool state)
@@ -272,7 +272,7 @@ will receive a `button_state` when the button's state changes:
272272

273273
=== button_state
274274

275-
[,c++]
275+
[source,c++]
276276
----
277277
struct button_state
278278
{

docs/modules/ROOT/pages/layout/decks.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ a|
4545

4646
=== Example
4747

48-
[,c++]
48+
[source,c++]
4949
----
5050
deck(item1, item2, item3, item4)
5151
----
@@ -73,14 +73,14 @@ Remember that the items are `element_ptr` instances.
7373

7474
=== Expression
7575

76-
[,c++]
76+
[source,c++]
7777
----
7878
deck_composite c;
7979
----
8080

8181
=== Example
8282

83-
[,c++]
83+
[source,c++]
8484
----
8585
c.push_back(share(child));
8686
----

docs/modules/ROOT/pages/layout/flow.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ Remember that the items are `element_ptr` instances.
3737

3838
=== Expression
3939

40-
[,c++]
40+
[source,c++]
4141
----
4242
flow_composite c;
4343
----
4444

4545
=== Example
4646

47-
[,c++]
47+
[source,c++]
4848
----
4949
c.push_back(share(child));
5050
----

docs/modules/ROOT/pages/layout/grids.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ a|
7575

7676
=== Example
7777

78-
[,c++]
78+
[source,c++]
7979
----
8080
static float positions[] = {0.25, 0.5, 0.75, 1.0};
8181
//...
@@ -120,14 +120,14 @@ Remember that the items are `element_ptr` instances.
120120

121121
=== Expression
122122

123-
[,c++]
123+
[source,c++]
124124
----
125125
hgrid_composite c{positions};
126126
----
127127

128128
=== Example
129129

130-
[,c++]
130+
[source,c++]
131131
----
132132
c.push_back(share(child));
133133
----
@@ -215,7 +215,7 @@ a|
215215

216216
=== Example
217217

218-
[,c++]
218+
[source,c++]
219219
----
220220
static float positions[] = {0.25, 0.5, 0.75, 1.0};
221221
//...
@@ -259,14 +259,14 @@ Remember that the items are `element_ptr` instances.
259259

260260
=== Expression
261261

262-
[,c++]
262+
[source,c++]
263263
----
264264
vgrid_composite c{positions};
265265
----
266266

267267
=== Example:
268268

269-
[,c++]
269+
[source,c++]
270270
----
271271
c.push_back(share(child));
272272
----

docs/modules/ROOT/pages/layout/layers.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ a|
6262

6363
=== Example
6464

65-
[,c++]
65+
[source,c++]
6666
----
6767
layer(item1, item2, item3, item4)
6868
----
@@ -86,14 +86,14 @@ Remember that the items are `element_ptr` instances.
8686

8787
=== Expression
8888

89-
[,c++]
89+
[source,c++]
9090
----
9191
layer_composite c;
9292
----
9393

9494
==== Example
9595

96-
[,c++]
96+
[source,c++]
9797
----
9898
c.push_back(share(child));
9999
----

docs/modules/ROOT/pages/layout/limits.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ will be placed in the view depending on available window space.
1414

1515
=== Declaration
1616

17-
[,c++]
17+
[source,c++]
1818
----
1919
struct view_limits
2020
{
@@ -35,7 +35,7 @@ specify positions or dimensions within the graphical context.
3535
By default, an element has full limits, meaning there is no constraints on
3636
its size. It is infinitely resizable:
3737

38-
[,c++]
38+
[source,c++]
3939
----
4040
constexpr view_limits full_limits = {
4141
{0.0, 0.0}
@@ -53,17 +53,17 @@ y size) up to the full extent of the screen, and beyond (if possible).
5353

5454
=== Examples
5555

56-
[,c++]
56+
[source,c++]
5757
----
5858
{{100, 100}, {100, 100}}; // Fixed size
5959
----
6060

61-
[,c++]
61+
[source,c++]
6262
----
6363
{{100, 100}, {100, full_extent}}; // Fixed width, flexible height
6464
----
6565

66-
[,c++]
66+
[source,c++]
6767
----
6868
{{100, 100}, {100, 200}}; // Fixed width, semi-flexible height (100 to 200)
6969
----

docs/modules/ROOT/pages/layout/span.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The span of an element is the number of columns or rows it occupies in a grid
99
Grids>>). The span of an element is determined by the element's `span` member
1010
function:
1111

12-
[,c++]
12+
[source,c++]
1313
----
1414
virtual unsigned span() const;
1515
----

docs/modules/ROOT/pages/layout/stretch.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ side in an <<htile,htile>> or <<vtile,vtile>>, the element's "stretchiness"
1212
determines how much extra space is given to it. The element's "stretchiness"
1313
is determined by the element's `stretch` member function:
1414

15-
[,c++]
15+
[source,c++]
1616
----
1717
virtual view_stretch stretch() const;
1818
----
1919

2020
where `view_stretch` is a struct declared as:
2121

22-
[,c++]
22+
[source,c++]
2323
----
2424
struct view_stretch
2525
{

docs/modules/ROOT/pages/layout/tiles.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ a|
7979

8080
=== Example:
8181

82-
[,c++]
82+
[source,c++]
8383
----
8484
htile(item1, item2, item3, item4)
8585
----
@@ -103,14 +103,14 @@ remember that the items are `element_ptr` instances.
103103

104104
=== Expression
105105

106-
[,c++]
106+
[source,c++]
107107
----
108108
htile_composite c;
109109
----
110110

111111
=== Example
112112

113-
[,c++]
113+
[source,c++]
114114
----
115115
c.push_back(share(child));
116116
----
@@ -191,7 +191,7 @@ a|
191191

192192
=== Example
193193

194-
[,c++]
194+
[source,c++]
195195
----
196196
vtile(item1, item2, item3, item4)
197197
----
@@ -215,14 +215,14 @@ Just remember that the items are `element_ptr` instances.
215215

216216
=== Expression
217217

218-
[,c++]
218+
[source,c++]
219219
----
220220
vtile_composite c;
221221
----
222222

223223
=== Example
224224

225-
[,c++]
225+
[source,c++]
226226
----
227227
c.push_back(share(child));
228228
----

0 commit comments

Comments
 (0)