Skip to content

Commit cfce36e

Browse files
committed
Fix code fences
1 parent 7ec9ebd commit cfce36e

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

topics/HowTo/WorkWithIProperty.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class PropertyTester
6868

6969
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.
7070

71-
```charp
71+
```csharp
7272
Text = new Property<string>(lifetime, "OptionsExampleViewModel.Text");
7373

7474
var checkMeOption =
@@ -202,4 +202,4 @@ public class PropertyFlow
202202

203203
## Color Themes
204204
The classes responsible for working with color themes extensively use `IProperty`.
205-
For more details, refer to [Work with Color Themes](WorkWithColorThemes.md).
205+
For more details, refer to [Work with Color Themes](WorkWithColorThemes.md).

topics/basics/getting_started/running_plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To launch Rider on macOS or Linux, you can run the `gradlew` script as follows:
4646

4747
To launch ReSharper in an experimental Visual Studio instance, you can run the `runVisualStudio.ps1` script:
4848

49-
```powershell
49+
```bash
5050
.\runVisualStudio.ps1
5151
```
5252

topics/testing/GoldFiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ When a test fails, ReSharper's test framework adds extra information into the [`
4545

4646
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:
4747

48-
```dosbatch
48+
```text
4949
setlocal
5050
if not defined DIFF SET DIFF=kdiff3
5151
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
7474
| Environment&nbsp;variable&nbsp;&nbsp;&nbsp;| Value |
7575
|----------------------|-----------------------------------------------|
7676
| `DIFF` | `sgdm` |
77-
| `DIFF_PARAMETERS` | `/t1="$plabel1" /t2="$clabel" $parent $child` |
77+
| `DIFF_PARAMETERS` | `/t1="$plabel1" /t2="$clabel" $parent $child` |

topics/testing/OptionsIterator.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Combinations of options are specified with a JavaScript-like DSL. A JavaScript e
5656

5757
At the simplest, an object literal is used as a collection of name/value pairs to set options and their values.
5858

59-
```js
59+
```javascript
6060
{
6161
TagAttributesFormat: OnSingleLine,
6262
MaxSingleLineTagLength: 10
@@ -67,7 +67,7 @@ Values in the object literal can be string literals, numerals, or unquoted value
6767

6868
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.
6969

70-
```js
70+
```javascript
7171
{
7272
TagAttributesFormat: [OnSingleLine, OnDifferentLines],
7373
MaxSingleLineTagLength: 10
@@ -98,7 +98,7 @@ public class CodeFormatterWithExplicitSettingsTestBase // : ...
9898

9999
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:
100100

101-
```js
101+
```javascript
102102
{
103103
TagAttributesFormat: OnSingleLine, // Sets HtmlCodeFormatterTests.TagAttributesFormat
104104
CommonFormatting$ALIGNMENT_TAB_FILL_STYLE: USE_SPACES // Sets CommonFormatterSettingsKey.ALIGNMENT_TAB_FILL_STYLE
@@ -114,7 +114,7 @@ The `TestOptionsIterator` recognises a couple of special property names for sett
114114

115115
Both of these values are language specific, so require a language prefix:
116116

117-
```js
117+
```javascript
118118
{
119119
HTML$USE_TABS: all
120120
}
@@ -170,7 +170,7 @@ If the value is a scalar, it can be a string literal, numeral, boolean or unquot
170170

171171
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.
172172

173-
```js
173+
```javascript
174174
{
175175
FileExtensions: [ "*.html", "*.cshtml" ],
176176
TemplateMimeTypes: {
@@ -184,7 +184,7 @@ This will create a combination of tests for the two values in `FileExtensions`,
184184

185185
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.
186186

187-
```js
187+
```javascript
188188
{
189189
FileExtensions: [ [ "*.html", "*.cshtml" ], [ "*.html", "*.vbhtml" ] ],
190190
TemplateMimeTypes: [
@@ -207,7 +207,7 @@ When used inside an object literal, the behaviour is as described above.
207207

208208
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.
209209

210-
```js
210+
```javascript
211211
[
212212
{ Reformat: [ True, False ] },
213213
{ HTML$USE_TABS: [ True, False] }
@@ -220,7 +220,7 @@ This runs the test four times, firstly with both boolean values for `Reformat` a
220220

221221
Binary expressions are used to combine combinations:
222222

223-
```js
223+
```javascript
224224
{ Reformat: all } * { HTML$USE_TABS: all }
225225
```
226226

@@ -257,7 +257,7 @@ The `TestOptionsIterator` will automatically load combinations specified in a `.
257257

258258
The file should contain a set of combinations as a single object literal:
259259

260-
```js
260+
```javascript
261261
{
262262
TagAttributesFormat: OnSingleLine,
263263
MaxSingleLineTagLength: 10
@@ -270,7 +270,7 @@ If the `TestOptionsIterator` sees a `.dotSettings` file (e.g. `test01.js.dotSett
270270

271271
Combinations can also be embedded directly in the input file, using the `SettingsIterator` variable:
272272

273-
```js
273+
```javascript
274274
${SettingsIterator: { TagAttributeFormat: all } }
275275
function foo() {}
276276
```
@@ -289,7 +289,7 @@ public abstract class JavaScriptCodeFormatterTestBase : CodeFormatterWithExplici
289289

290290
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:
291291

292-
```js
292+
```javascript
293293
var Align = [
294294
"Align",
295295
{ ALIGN_MULTILINE_PARAMETER : all },
@@ -313,8 +313,8 @@ public void Test001()
313313

314314
Or it can be combined into a binary expression:
315315

316-
```js
316+
```javascript
317317
( Align * { SPACE_AROUND_BINARY_OPERATOR: all } )
318318
```
319319

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

Comments
 (0)