Skip to content

Commit b484536

Browse files
authored
Merge pull request #3617 from Mikejo5000/code-fence-scripting-docs
chore: Add code fence languages to scripting-docs
2 parents abef1df + 05efe91 commit b484536

File tree

465 files changed

+9838
-9838
lines changed

Some content is hidden

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

465 files changed

+9838
-9838
lines changed

scripting-docs/javascript/misc/can-t-have-break-outside-of-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ manager: "ghogen"
2424
# Can't have 'break' outside of loop
2525
You attempted to use the **break** keyword outside of a loop. The **break** keyword is used to terminate a loop or `switch` statement. It must be embedded in the body of a loop or `switch` statement. However, a **label** can follow the break keyword.
2626

27-
```
27+
```js
2828
break labelname;
29-
```
29+
```
3030

3131
You only need the labeled form of the **break** keyword when you are using nested loops or `switch` statements and need to break out of a loop that is not the innermost one.
3232

scripting-docs/javascript/misc/cannot-assign-to-a-function-result.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ f1_keywords:
1313
- "VS.WebClient.Help.SCRIPT5003"
1414
dev_langs:
1515
- "JavaScript"
16-
- "TypeScript"
16+
- "TypeScript"
1717
- "DHTML"
1818
ms.assetid: ee8ffb3a-1451-4cb3-99bf-5e9cf8b77d79
1919
caps.latest.revision: 9
@@ -24,7 +24,7 @@ manager: "ghogen"
2424
# Cannot assign to a function result
2525
You attempted to assign a value to a function result. The result of a function can be assigned to a variable, but it cannot be used as a variable. If you want to assign a new value to the function itself, omit the parentheses (the function call operator). The following example demonstrates a situation in which this error is generated.
2626

27-
```
27+
```js
2828
myFunction() = 42; // Attempting to assign the value 42 to the result of the function call.
2929
```
3030

scripting-docs/javascript/misc/conditional-compilation-is-turned-off.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ manager: "ghogen"
2424
# Conditional compilation is turned off
2525
You attempted to use a conditional compilation variable without first turning conditional compilation on. Turning on conditional compilation tells the [!INCLUDE[javascript](../../javascript/includes/javascript-md.md)] compiler to interpret identifiers beginning with @ as conditional compilation variables. You do this by beginning your conditional code with the statement:
2626

27-
```
27+
```js
2828
/*@cc_on @*/
29-
```
29+
```
3030

3131
### To correct this error
3232

3333
- Add the following statement to the beginning of your conditional code:
3434

3535
```JavaScript
3636
/*@cc_on @*/
37-
```
37+
```
3838

3939
## See Also
4040
[Conditional Compilation](../../javascript/advanced/conditional-compilation-javascript.md)

scripting-docs/javascript/misc/enumerator-object-expected.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ You attempted to invoke the **Enumerator.prototype.atEnd, Enumerator.prototype.i
2828
var o = new Object;
2929
o.f = Enumerator.prototype.atEnd;
3030
o.f();
31-
```
31+
```
3232

3333
### To correct this error
3434

3535
- Only invoke the **Enumerator.prototype.atEnd**, **Enumerator.prototype.item**, **Enumerator.prototype.moveFirst**, or **Enumerator.prototype.moveNext** methods on objects of type `Enumerator`. To find out if your object is an `Enumerator` object, use:
3636

37-
```
37+
```js
3838
if(x instanceof Enumerator)
39-
```
39+
```
4040

4141
## See Also
4242
[Enumerator Object](../../javascript/reference/enumerator-object-javascript.md)

scripting-docs/javascript/misc/return-statement-outside-of-function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ manager: "ghogen"
2424
# 'return' statement outside of function
2525
You used a `return` statement in the global scope of your code. The `return` statement should only appear within the body of a function.
2626

27-
Invoking a function with the `()` operator is an expression. All expressions have values; the `return` statement is used to specify the value retuned by a function. The general form is:
27+
Invoking a function with the `()` operator is an expression. All expressions have values; the `return` statement is used to specify the value returned by a function. The general form is:
2828

29-
```
29+
```js
3030

3131
return [ expression ];
32-
```
32+
```
3333

3434
When the `return` statement is executed, *expression* is evaluated and returned as the value of the function. If there is no expression, **undefined** is returned.
3535

scripting-docs/javascript/misc/unexpected-quantifier-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ f1_keywords:
1313
- "VS.WebClient.Help.SCRIPT5018"
1414
dev_langs:
1515
- "JavaScript"
16-
- "TypeScript"
16+
- "TypeScript"
1717
- "DHTML"
1818
ms.assetid: ba6d34f9-2d6f-486c-a929-6cd9818be322
1919
caps.latest.revision: 7
@@ -24,7 +24,7 @@ manager: "ghogen"
2424
# Unexpected quantifier (JavaScript)
2525
When composing your regular expression search pattern, you created a pattern element with an illegal repetition factor. For example, the pattern
2626

27-
```
27+
```js
2828
/^+/
2929
```
3030

scripting-docs/javascript/misc/vbarray-expected.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ manager: "ghogen"
2424
# VBArray expected
2525
You supplied an object that was not a Visual Basic safeArray, when one was expected.
2626

27-
```
27+
```js
2828
new VBArray(safeArray);
29-
```
29+
```
3030

3131
VBArrays are read-only, and cannot be created directly. The safeArray argument is a VBArray value, and must have obtained a VBArray value before being passed to the `VBArray` constructor. This can only be done by retrieving the value from an existing ActiveX or other object.
3232

scripting-docs/winscript/implementing-smart-host-helper-interfaces.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
---
2-
title: "Implementing Smart Host Helper Interfaces | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/18/2017"
5-
ms.prod: "windows-script-interfaces"
6-
ms.reviewer: ""
7-
ms.suite: ""
8-
ms.tgt_pltfrm: ""
9-
ms.topic: "article"
10-
helpviewer_keywords:
11-
- "Smart Host Helper Interfaces, implementing"
12-
ms.assetid: b9c44246-4d4d-469e-91be-00c8f5796fa5
13-
caps.latest.revision: 8
14-
author: "mikejo5000"
15-
ms.author: "mikejo"
16-
manager: "ghogen"
17-
---
18-
# Implementing Smart Host Helper Interfaces
1+
---
2+
title: "Implementing Smart Host Helper Interfaces | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/18/2017"
5+
ms.prod: "windows-script-interfaces"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.tgt_pltfrm: ""
9+
ms.topic: "article"
10+
helpviewer_keywords:
11+
- "Smart Host Helper Interfaces, implementing"
12+
ms.assetid: b9c44246-4d4d-469e-91be-00c8f5796fa5
13+
caps.latest.revision: 8
14+
author: "mikejo5000"
15+
ms.author: "mikejo"
16+
manager: "ghogen"
17+
---
18+
# Implementing Smart Host Helper Interfaces
1919
The [IDebugDocumentHelper Interface](../winscript/reference/idebugdocumenthelper-interface.md) interface greatly simplifies the task of creating a smart host for Active Debugging, because it provides implementations for many interfaces necessary for smart hosting.
2020

2121
To be a smart host using `IDebugDocumentHelper`, a host application must do only three things:
@@ -47,7 +47,7 @@ The [IDebugDocumentHelper Interface](../winscript/reference/idebugdocumenthelper
4747

4848
The code below outlines the process, but it does not include error checking or other robust programming techniques.
4949

50-
```
50+
```cpp
5151
CoCreateInstance(CLSID_ProcessDebugManager, NULL,
5252
CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER
5353
| CLSCTX_LOCAL_SERVER,
@@ -74,13 +74,13 @@ The [IDebugDocumentHelper Interface](../winscript/reference/idebugdocumenthelper
7474
## Implementing IActiveScriptSiteDebug
7575
To implement [IActiveScriptSiteDebug::GetDocumentContextFromPosition](../winscript/reference/iactivescriptsitedebug-getdocumentcontextfromposition.md), get the helper corresponding to the given site, and then get the starting document offset for the given source context, as follows:
7676

77-
```
77+
```cpp
7878
pddh->GetScriptBlockInfo(dwSourceContext, NULL, &ulStartPos, NULL);
7979
```
8080
8181
Next, use the helper to create a new document context for the given character offset:
8282
83-
```
83+
```cpp
8484
pddh->CreateDebugDocumentContext(ulStartPos + uCharacterOffset, cChars, &pddcNew);
8585
```
8686

scripting-docs/winscript/reference/breakpoint-state-enumeration.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ ms.author: "mikejo"
2020
manager: "ghogen"
2121
---
2222
# BREAKPOINT_STATE Enumeration
23-
Indicates the state of a breakpoint.
24-
25-
## Syntax
26-
27-
```
28-
typedef enum tagBREAKPOINT_STATE {
29-
BREAKPOINT_DELETED = 0,
30-
BREAKPOINT_DISABLED = 1,
31-
BREAKPOINT_ENABLED = 2
32-
} BREAKPOINT_STATE;
33-
```
34-
35-
## Members
36-
37-
|Member|Description|
38-
|------------|-----------------|
39-
|BREAKPOINT_DELETED|The breakpoint no longer exists, but there are still references to it.|
40-
|BREAKPOINT_DISABLED|The breakpoint exists but is disabled.|
41-
|BREAKPOINT_ENABLED|The breakpoint exists and is enabled.|
42-
43-
## See Also
23+
Indicates the state of a breakpoint.
24+
25+
## Syntax
26+
27+
```cpp
28+
typedef enum tagBREAKPOINT_STATE {
29+
BREAKPOINT_DELETED = 0,
30+
BREAKPOINT_DISABLED = 1,
31+
BREAKPOINT_ENABLED = 2
32+
} BREAKPOINT_STATE;
33+
```
34+
35+
## Members
36+
37+
|Member|Description|
38+
|------------|-----------------|
39+
|BREAKPOINT_DELETED|The breakpoint no longer exists, but there are still references to it.|
40+
|BREAKPOINT_DISABLED|The breakpoint exists but is disabled.|
41+
|BREAKPOINT_ENABLED|The breakpoint exists and is enabled.|
42+
43+
## See Also
4444
[Active Script Debugger Constants, Enumerations, and Structures](../../winscript/reference/active-script-debugger-constants-enumerations-and-structures.md)

scripting-docs/winscript/reference/breakreason-enumeration.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
---
2-
title: "BREAKREASON Enumeration | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/18/2017"
5-
ms.prod: "windows-script-interfaces"
6-
ms.reviewer: ""
7-
ms.suite: ""
8-
ms.tgt_pltfrm: ""
9-
ms.topic: "reference"
10-
apiname:
11-
- "BREAKREASON"
12-
apilocation:
13-
- "scrobj.dll"
14-
helpviewer_keywords:
15-
- "BREAKREASON enumeration"
16-
ms.assetid: bde07ede-2f9b-4fa2-affc-f9405683f5f7
17-
caps.latest.revision: 8
18-
author: "mikejo5000"
19-
ms.author: "mikejo"
20-
manager: "ghogen"
21-
---
22-
# BREAKREASON Enumeration
1+
---
2+
title: "BREAKREASON Enumeration | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/18/2017"
5+
ms.prod: "windows-script-interfaces"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.tgt_pltfrm: ""
9+
ms.topic: "reference"
10+
apiname:
11+
- "BREAKREASON"
12+
apilocation:
13+
- "scrobj.dll"
14+
helpviewer_keywords:
15+
- "BREAKREASON enumeration"
16+
ms.assetid: bde07ede-2f9b-4fa2-affc-f9405683f5f7
17+
caps.latest.revision: 8
18+
author: "mikejo5000"
19+
ms.author: "mikejo"
20+
manager: "ghogen"
21+
---
22+
# BREAKREASON Enumeration
2323
Indicates what caused the break.
2424

2525
## Syntax
2626

27-
```
27+
```cpp
2828
typedef enum tagBREAKREASON {
2929
BREAKREASON_STEP,
3030
BREAKREASON_BREAKPOINT,

scripting-docs/winscript/reference/breakresumeaction-enumeration.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
---
2-
title: "BREAKRESUMEACTION Enumeration | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/18/2017"
5-
ms.prod: "windows-script-interfaces"
6-
ms.reviewer: ""
7-
ms.suite: ""
8-
ms.tgt_pltfrm: ""
9-
ms.topic: "reference"
10-
apiname:
11-
- "BREAKRESUMEACTION"
12-
apilocation:
13-
- "scrobj.dll"
14-
helpviewer_keywords:
15-
- "BREAKRESUMEACTION enumeration"
16-
ms.assetid: b39fcc82-7776-4caa-8155-b398de68df03
17-
caps.latest.revision: 9
18-
author: "mikejo5000"
19-
ms.author: "mikejo"
20-
manager: "ghogen"
21-
---
22-
# BREAKRESUMEACTION Enumeration
1+
---
2+
title: "BREAKRESUMEACTION Enumeration | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/18/2017"
5+
ms.prod: "windows-script-interfaces"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.tgt_pltfrm: ""
9+
ms.topic: "reference"
10+
apiname:
11+
- "BREAKRESUMEACTION"
12+
apilocation:
13+
- "scrobj.dll"
14+
helpviewer_keywords:
15+
- "BREAKRESUMEACTION enumeration"
16+
ms.assetid: b39fcc82-7776-4caa-8155-b398de68df03
17+
caps.latest.revision: 9
18+
author: "mikejo5000"
19+
ms.author: "mikejo"
20+
manager: "ghogen"
21+
---
22+
# BREAKRESUMEACTION Enumeration
2323
Describes ways to continue from a breakpoint.
2424

2525
## Syntax
2626

27-
```
27+
```cpp
2828
typedef enum tagBREAKRESUME_ACTION {
2929
BREAKRESUMEACTION_ABORT,
3030
BREAKRESUMEACTION_CONTINUE,

scripting-docs/winscript/reference/dbgprop-attrib-flags.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
---
2-
title: "DBGPROP_ATTRIB_FLAGS | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/18/2017"
5-
ms.prod: "windows-script-interfaces"
6-
ms.reviewer: ""
7-
ms.suite: ""
8-
ms.tgt_pltfrm: ""
9-
ms.topic: "reference"
10-
apiname:
11-
- "DBGPROP_ATTRIB_FLAGS"
12-
apilocation:
13-
- "scrobj.dll"
14-
f1_keywords:
15-
- "DBGPROP_ATTRIB_FLAGS"
16-
helpviewer_keywords:
17-
- "DBGPROP_ATTRIB_FLAGS"
18-
ms.assetid: 90314496-527b-4357-9df8-125a360bf216
19-
caps.latest.revision: 10
20-
author: "mikejo5000"
21-
ms.author: "mikejo"
22-
manager: "ghogen"
23-
---
24-
# DBGPROP_ATTRIB_FLAGS
1+
---
2+
title: "DBGPROP_ATTRIB_FLAGS | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/18/2017"
5+
ms.prod: "windows-script-interfaces"
6+
ms.reviewer: ""
7+
ms.suite: ""
8+
ms.tgt_pltfrm: ""
9+
ms.topic: "reference"
10+
apiname:
11+
- "DBGPROP_ATTRIB_FLAGS"
12+
apilocation:
13+
- "scrobj.dll"
14+
f1_keywords:
15+
- "DBGPROP_ATTRIB_FLAGS"
16+
helpviewer_keywords:
17+
- "DBGPROP_ATTRIB_FLAGS"
18+
ms.assetid: 90314496-527b-4357-9df8-125a360bf216
19+
caps.latest.revision: 10
20+
author: "mikejo5000"
21+
ms.author: "mikejo"
22+
manager: "ghogen"
23+
---
24+
# DBGPROP_ATTRIB_FLAGS
2525
Describes various attributes for an `IDebugProperty`. Member of the `DebugPropertyInfo` structure.
2626

2727
## Syntax
2828

29-
```
29+
```cpp
3030
enum {
3131
DBGPROP_ATTRIB_NO_ATTRIB =0x00000000,
3232
DBGPROP_ATTRIB_VALUE_IS_INVALID =0x00000008,

0 commit comments

Comments
 (0)