Skip to content

Commit 0842e44

Browse files
author
Colin Robertson
committed
Fix more ticks
1 parent 0e0be92 commit 0842e44

File tree

215 files changed

+3483
-3493
lines changed

Some content is hidden

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

215 files changed

+3483
-3493
lines changed

docs/atl-mfc-shared/reference/csimplestringt-class.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ _tprintf_s(_T("Alloc length is %d, String length is %d\n"),
344344
345345
The output from this example is as follows:
346346
347-
`Alloc length is 1031, String length is 1024`
348-
349-
`Alloc length is 1031, String length is 15`
350-
351-
`Alloc length is 15, String length is 15`
347+
```Output
348+
Alloc length is 1031, String length is 1024
349+
Alloc length is 1031, String length is 15
350+
Alloc length is 15, String length is 15
351+
```
352352

353353
## <a name="getalloclength"></a> CSimpleStringT::GetAllocLength
354354

docs/atl-mfc-shared/reference/cstringt-class.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,11 +1526,11 @@ Unlike the CRT tokenize functions like [strtok_s, _strtok_s_l, wcstok_s, _wcstok
15261526

15271527
The output from this example is as follows:
15281528

1529-
`Resulting Token: First`
1530-
1531-
`Resulting Token: Second`
1532-
1533-
`Resulting Token: Third`
1529+
```Output
1530+
Resulting Token: First
1531+
Resulting Token: Second
1532+
Resulting Token: Third
1533+
```
15341534

15351535
## <a name="trim"></a> CStringT::Trim
15361536

@@ -1572,9 +1572,10 @@ Removes all leading and trailing occurrences of one of the following:
15721572

15731573
The output from this example is as follows:
15741574

1575-
`Before: "******Soccer is best, but liquor is quicker!!!!!"`
1576-
1577-
`After : "Soccer is best, but liquor is quicker"`
1575+
```Output
1576+
Before: "******Soccer is best, but liquor is quicker!!!!!"
1577+
After : "Soccer is best, but liquor is quicker"
1578+
```
15781579

15791580
## <a name="trimleft"></a> CStringT::TrimLeft
15801581

docs/atl/reference/atl-com-module70-structure.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ struct _ATL_COM_MODULE70 {
3030

3131
## Members
3232

33-
`cbSize`
33+
`cbSize`<br/>
3434
The size of the structure, used for versioning.
3535

36-
`m_hInstTypeLib`
36+
`m_hInstTypeLib`<br/>
3737
The handle instance to the type library for this module.
3838

39-
`m_ppAutoObjMapFirst`
39+
`m_ppAutoObjMapFirst`<br/>
4040
Address of the array element indicating the beginning of the object map entries for this module.
4141

42-
`m_ppAutoObjMapLast`
42+
`m_ppAutoObjMapLast`<br/>
4343
Address of the array element indicating the end of the object map entries for this module.
4444

45-
`m_csObjMap`
45+
`m_csObjMap`<br/>
4646
Critical section to serialize access to the object map entries. Used internally by ATL.
4747

4848
## Remarks

docs/atl/supporting-idispeventimpl.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ In order for the event notifications to be handled by the proper function, your
5353

5454
ATL provides several macros, [BEGIN_SINK_MAP](reference/composite-control-macros.md#begin_sink_map), [END_SINK_MAP](reference/composite-control-macros.md#end_sink_map), and [SINK_ENTRY_EX](reference/composite-control-macros.md#sink_entry_ex), that make this mapping easier. The standard format is as follows:
5555

56-
`BEGIN_SINK_MAP(comClass)`
57-
58-
`SINK_ENTRY_EX(id, iid, dispid, func)`
59-
60-
`. . . //additional external event entries`
61-
62-
`END_SINK_MAP()`
56+
```cpp
57+
BEGIN_SINK_MAP(comClass)
58+
SINK_ENTRY_EX(id, iid, dispid, func)
59+
. . . //additional external event entries
60+
END_SINK_MAP()
61+
```
6362
6463
The following example declares an event sink map with two event handlers:
6564

docs/cpp/range-based-for-statement-cpp.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,14 @@ int main()
8585
Here is the output:
8686

8787
```Output
88-
1 2 3 4 5 6 7 8 9 10
89-
90-
1 2 3 4 5 6 7 8 9 10
91-
92-
1 2 3 4 5 6 7 8 9 10
93-
94-
1 2 3 4 5 6 7 8 9 10
95-
96-
`end of integer array test`
97-
98-
`0.14159 1.14159 2.14159 3.14159 4.14159 5.14159 6.14159 7.14159 8.14159 9.14159`
99-
100-
`end of vector test`
88+
1 2 3 4 5 6 7 8 9 10
89+
1 2 3 4 5 6 7 8 9 10
90+
1 2 3 4 5 6 7 8 9 10
91+
1 2 3 4 5 6 7 8 9 10
92+
end of integer array test
93+
94+
0.14159 1.14159 2.14159 3.14159 4.14159 5.14159 6.14159 7.14159 8.14159 9.14159
95+
end of vector test
10196
```
10297

10398
A range-based **for** loop terminates when one of these in `statement` is executed: a [break](../cpp/break-statement-cpp.md), [return](../cpp/return-statement-cpp.md), or [goto](../cpp/goto-statement-cpp.md) to a labeled statement outside the range-based **for** loop. A [continue](../cpp/continue-statement-cpp.md) statement in a range-based **for** loop terminates only the current iteration.

docs/dotnet/auto-gcroot-auto-gcroot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ auto_gcroot(
3131
```
3232

3333
#### Parameters
34-
`_ptr`
35-
The object to own.
34+
*_ptr*<br/>
35+
The object to own.
3636

37-
`_right`
38-
An existing `auto_gcroot`.
37+
*_right*<br/>
38+
An existing `auto_gcroot`.
3939

4040
## Remarks
4141
When constructing an `auto_gcroot` from an existing `auto_gcroot`, the existing `auto_gcroot` releases its object before transferring ownership of the object to the new `auto_gcroot`.

docs/dotnet/auto-gcroot-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class auto_gcroot;
2323
```
2424

2525
#### Parameters
26-
`_element_type`
27-
The managed type to be embedded.
26+
*_element_type*<br/>
27+
The managed type to be embedded.
2828

2929
## Requirements
3030
**Header file** \<msclr\auto_gcroot.h>

docs/dotnet/auto-gcroot-operator-assign.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ auto_gcroot<_element_type> & operator=(
3131
```
3232

3333
#### Parameters
34-
`_right`
35-
The object or `auto_gcroot` to be assigned to the current `auto_gcroot`.
34+
*_right*<br/>
35+
The object or `auto_gcroot` to be assigned to the current `auto_gcroot`.
3636

3737
## Return Value
3838
The current `auto_gcroot`, now owning `_right`.
3939

4040
## Example
4141

42-
```
42+
```cpp
4343
// msl_auto_gcroot_operator_equals.cpp
4444
// compile with: /clr
4545
#include <msclr\auto_gcroot.h>

docs/dotnet/calling-native-functions-from-managed-code.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int main() {
8989

9090
In this example, a Visual C++ program interoperates with the MessageBox function that is part of the Win32 API.
9191

92-
```
92+
```cpp
9393
// platform_invocation_services_4.cpp
9494
// compile with: /clr /c
9595
using namespace System;
@@ -116,16 +116,17 @@ int main() {
116116

117117
If we use PInvoke in a Visual C++ application, we might write something similar to the following:
118118

119-
`[DllImport("mylib")]`
120-
121-
`extern "C" String * MakeSpecial([MarshalAs(UnmanagedType::LPStr)] String ^);`
119+
```cpp
120+
[DllImport("mylib")]
121+
extern "C" String * MakeSpecial([MarshalAs(UnmanagedType::LPStr)] String ^);
122+
```
122123
123124
The difficulty here is that we cannot delete the memory for the unmanaged string returned by MakeSpecial. Other functions called through PInvoke return a pointer to an internal buffer that does not have to be deallocated by the user. In this case, using the IJW feature is the obvious choice.
124125
125126
## Limitations of PInvoke
126127
You cannot return the same exact pointer from a native function that you took as a parameter. If a native function returns the pointer that has been marshaled to it by PInvoke, memory corruption and exceptions may ensue.
127128
128-
```
129+
```cpp
129130
__declspec(dllexport)
130131
char* fstringA(char* param) {
131132
return param;

docs/dotnet/hosting-a-windows-form-user-control-as-an-mfc-dialog-box.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ MFC provides the template class [CWinFormsDialog](../mfc/reference/cwinformsdial
5252

5353
Before the return statement in the definition of CMFC03App::InitInstance, add:
5454

55-
`CHostForWinForm m_HostForWinForm;`
56-
57-
`m_HostForWinForm.DoModal();`
55+
```cpp
56+
CHostForWinForm m_HostForWinForm;
57+
m_HostForWinForm.DoModal();
58+
```
5859

5960
8. Build and run the project.
6061

@@ -68,7 +69,7 @@ MFC provides the template class [CWinFormsDialog](../mfc/reference/cwinformsdial
6869

6970
Display the **Properties** window (F4). In **Class View**, select CHostForWinForm. In the **Properties** window, select overrides and in the row for OnInitDialog, click in the left hand column and select \< Add >. This adds the following line to CHostForWinForm.h:
7071

71-
```
72+
```cpp
7273
virtual BOOL OnInitDialog();
7374
```
7475

0 commit comments

Comments
 (0)