You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topics/HowTo/WorkWithIProperty.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ public class PropertyTester
68
68
69
69
One more obvious example of how `IProperty` can be used is global options: once a user changes an option on the **Options** page, the plugin gets instantly notified about the change.
Copy file name to clipboardExpand all lines: topics/testing/GoldFiles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ When a test fails, ReSharper's test framework adds extra information into the [`
45
45
46
46
When a test fails, the `ComparisonFile` field is added to the failing test's exception's `Data` dictionary. This field contains a clickable `file://` url that will execute a `.bat` file that's been saved in the `%\TEMP%` folder. This batch file is as follows:
47
47
48
-
```dosbatch
48
+
```text
49
49
setlocal
50
50
if not defined DIFF SET DIFF=kdiff3
51
51
if not defined DIFF_PARAMETERS SET DIFF_PARAMETERS= --L1 '$plabel1' --L2 '$clabel' $parent $child
@@ -74,4 +74,4 @@ For example, to use [SourceGear DiffMerge](https://sourcegear.com/diffmerge/) as
74
74
| Environment variable | Value |
Copy file name to clipboardExpand all lines: topics/testing/OptionsIterator.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Combinations of options are specified with a JavaScript-like DSL. A JavaScript e
56
56
57
57
At the simplest, an object literal is used as a collection of name/value pairs to set options and their values.
58
58
59
-
```js
59
+
```javascript
60
60
{
61
61
TagAttributesFormat: OnSingleLine,
62
62
MaxSingleLineTagLength:10
@@ -67,7 +67,7 @@ Values in the object literal can be string literals, numerals, or unquoted value
67
67
68
68
In order to support combinations of options, the value of the property can be an array literal. The array lists all of the values that should be applied to that property.
@@ -98,7 +98,7 @@ public class CodeFormatterWithExplicitSettingsTestBase // : ...
98
98
99
99
The `HtmlCodeFormatterTests` can now use properties from `HtmlFormatterSettingsKey` and `CommonFormatterSettingsKey` in the object literals of the DSL. It can use each property name unqualified, or disambiguate by using the friendly name of the settings key as a qualifier:
@@ -114,7 +114,7 @@ The `TestOptionsIterator` recognises a couple of special property names for sett
114
114
115
115
Both of these values are language specific, so require a language prefix:
116
116
117
-
```js
117
+
```javascript
118
118
{
119
119
HTML$USE_TABS: all
120
120
}
@@ -170,7 +170,7 @@ If the value is a scalar, it can be a string literal, numeral, boolean or unquot
170
170
171
171
To represent a collection of items, the value can be either an array literal or a nested object literal. An array literal creates a combination of all of the simple (quoted/unquoted) string values in the array. An object literal is used to create string name/value pairs to be used for an indexed setting.
172
172
173
-
```js
173
+
```javascript
174
174
{
175
175
FileExtensions: [ "*.html", "*.cshtml" ],
176
176
TemplateMimeTypes: {
@@ -184,7 +184,7 @@ This will create a combination of tests for the two values in `FileExtensions`,
184
184
185
185
If a property's value is an array literal, it can further contain either an object literal, or even another array literal. This allows for creating a combination of indexed settings.
@@ -207,7 +207,7 @@ When used inside an object literal, the behaviour is as described above.
207
207
208
208
Otherwise, array literals are used to create a sequential combination of its contents. That is, each item in the array literal is evaluated and the test is run. The item in the array literal must either be another array literal (which creates a new combination grouping), or an object literal, which describes the settings to apply, as above.
209
209
210
-
```js
210
+
```javascript
211
211
[
212
212
{ Reformat: [ True, False ] },
213
213
{ HTML$USE_TABS: [ True, False] }
@@ -220,7 +220,7 @@ This runs the test four times, firstly with both boolean values for `Reformat` a
220
220
221
221
Binary expressions are used to combine combinations:
222
222
223
-
```js
223
+
```javascript
224
224
{ Reformat: all } * { HTML$USE_TABS: all }
225
225
```
226
226
@@ -257,7 +257,7 @@ The `TestOptionsIterator` will automatically load combinations specified in a `.
257
257
258
258
The file should contain a set of combinations as a single object literal:
259
259
260
-
```js
260
+
```javascript
261
261
{
262
262
TagAttributesFormat: OnSingleLine,
263
263
MaxSingleLineTagLength:10
@@ -270,7 +270,7 @@ If the `TestOptionsIterator` sees a `.dotSettings` file (e.g. `test01.js.dotSett
270
270
271
271
Combinations can also be embedded directly in the input file, using the `SettingsIterator` variable:
272
272
273
-
```js
273
+
```javascript
274
274
${SettingsIterator: { TagAttributeFormat: all } }
275
275
functionfoo() {}
276
276
```
@@ -289,7 +289,7 @@ public abstract class JavaScriptCodeFormatterTestBase : CodeFormatterWithExplici
289
289
290
290
The file is a `.jcnf` file as described above, however the format is slightly different. Instead of describing a single JavaScript-like object literal, the common `.jcnf` files contain JavaScript-like variable declarations that refer to array literals that describe a combination:
291
291
292
-
```js
292
+
```javascript
293
293
var Align = [
294
294
"Align",
295
295
{ ALIGN_MULTILINE_PARAMETER: all },
@@ -313,8 +313,8 @@ public void Test001()
313
313
314
314
Or it can be combined into a binary expression:
315
315
316
-
```js
316
+
```javascript
317
317
( Align * { SPACE_AROUND_BINARY_OPERATOR: all } )
318
318
```
319
319
320
-
Which will expand the combinations by also iterating over all values of `SPACE_AROUND_BINARY_OPERATOR` (which is a boolean).
320
+
Which will expand the combinations by also iterating over all values of `SPACE_AROUND_BINARY_OPERATOR` (which is a boolean).
0 commit comments