Skip to content

Commit

Permalink
Fix source highlighting in user defined type macros docs (#4169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeronSix committed Oct 2, 2023
1 parent fac07e2 commit 35c0b3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/mkdocs/docs/api/macros/nlohmann_define_type_intrusive.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See examples below for the concrete generated code.

Consider the following complete example:

```cpp hl_lines="21"
```cpp hl_lines="22"
--8<-- "examples/nlohmann_define_type_intrusive_macro.cpp"
```

Expand All @@ -80,15 +80,15 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33"
```cpp hl_lines="22 23 24 25 26 27 28 29 30 31 32 33 34"
--8<-- "examples/nlohmann_define_type_intrusive_explicit.cpp"
```

??? example "Example (2): NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT"

Consider the following complete example:

```cpp hl_lines="21"
```cpp hl_lines="22"
--8<-- "examples/nlohmann_define_type_intrusive_with_default_macro.cpp"
```

Expand All @@ -108,7 +108,7 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34 35"
--8<-- "examples/nlohmann_define_type_intrusive_with_default_explicit.cpp"
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ See examples below for the concrete generated code.

Consider the following complete example:

```cpp hl_lines="15"
```cpp hl_lines="16"
--8<-- "examples/nlohmann_define_type_non_intrusive_macro.cpp"
```

Expand All @@ -80,15 +80,15 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="15 16 17 18 19 20 21 22 23 24 25 26 27"
```cpp hl_lines="16 17 18 19 20 21 22 23 24 25 26 27 28"
--8<-- "examples/nlohmann_define_type_non_intrusive_explicit.cpp"
```

??? example "Example (2): NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT"

Consider the following complete example:

```cpp hl_lines="20"
```cpp hl_lines="21"
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_macro.cpp"
```

Expand All @@ -109,7 +109,7 @@ See examples below for the concrete generated code.

The macro is equivalent to:

```cpp hl_lines="20 21 22 23 24 25 26 27 28 29 30 31 32 33"
```cpp hl_lines="21 22 23 24 25 26 27 28 29 30 31 32 33 34"
--8<-- "examples/nlohmann_define_type_non_intrusive_with_default_explicit.cpp"
```

Expand Down

0 comments on commit 35c0b3e

Please sign in to comment.