Skip to content

Commit 4d69407

Browse files
dessyordanovavladislav-todorov
authored andcommitted
pre code tags fixed the wrong slash escaping
1 parent 08bad19 commit 4d69407

File tree

5 files changed

+16
-27
lines changed

5 files changed

+16
-27
lines changed

libraries/radwordsprocessing/concepts/fields/customcodefield.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ Here are some commonly used fields. The complete list of field codes and the swi
4646

4747
#### __[C#] Example 1: Insert PAGE field__
4848

49-
{{region cs-radwordsprocessing-concepts-customcodefield_0}}
50-
49+
<pre><code>
5150
editor.InsertField("PAGE \\* ROMAN", "«VII»");
52-
{{endregion}}
51+
</code></pre>
5352

5453

5554
The __\\* ROMAN__ is general formatting switch that formats a numeric result using uppercase Roman numerals.
@@ -62,13 +61,12 @@ The __\\* ROMAN__ is general formatting switch that formats a numeric result usi
6261

6362
#### __[C#] Example 2: Insert NUMPAGES field__
6463

65-
{{region cs-radwordsprocessing-concepts-customcodefield_1}}
66-
64+
<pre><code>
6765
editor.InsertText("Page ");
6866
editor.InsertField("PAGE", "3");
6967
editor.InsertText(" of ");
7068
editor.InsertField("NUMPAGES", "5");
71-
{{endregion}}
69+
</code></pre>
7270

7371

7472
### Inserting AUTHOR Field
@@ -77,10 +75,9 @@ In **Example 3** is demonstrated how to insert __AUTHOR__ field showing the name
7775

7876
#### __[C#] Example 3: Insert AUTHOR field__
7977

80-
{{region cs-radwordsprocessing-concepts-customcodefield_3}}
81-
78+
<pre><code>
8279
editor.InsertField("AUTHOR \\* Upper", "«JOHN DOE»");
83-
{{endregion}}
80+
</code></pre>
8481

8582

8683
The __\\* Upper__ switch will convert all letters in the result to uppercase.
@@ -92,11 +89,10 @@ The __\\* Upper__ switch will convert all letters in the result to uppercase.
9289

9390
#### __[C#] Example 4: Insert Table of Contents field__
9491

95-
{{region cs-radwordsprocessing-concepts-customcodefield_4}}
96-
92+
<pre><code>
9793
FieldInfo tocField = editor.InsertField("TOC \\o \"1-3\" \\h \\z \\u", "«result»");
9894
tocField.IsDirty = true;
99-
{{endregion}}
95+
</code></pre>
10096

10197

10298
There are several switches which can be used for this field:

libraries/radwordsprocessing/concepts/fields/ta-field.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ __Example 1__ demonstrates how you can insert a TA field.
4040

4141
#### __[C#] Example 1: Insert TA field__
4242

43-
{{region cs-radwordsprocessing-concepts-ta-field_0}}
44-
43+
<pre><code>
4544
var document = new RadFlowDocument();
4645
var editor = new RadFlowDocumentEditor(document);
4746

4847
editor.InsertField("TA \"Item\" \\b");
49-
50-
{{endregion}}
48+
</code></pre>
5149

5250
This type of field does not have a result but when updated the switches are applied to the text.
5351

libraries/radwordsprocessing/concepts/fields/tc-field.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,16 @@ __Example 1__ demonstrates how you can insert a TC field.
4040

4141
#### __[C#] Example 1: Insert TC field__
4242

43-
{{region cs-radwordsprocessing-concepts-tc-field_0}}
4443

44+
<pre><code>
4545
editor.InsertText("Text before ");
4646
editor.InsertBreak(BreakType.LineBreak);
4747

4848
editor.InsertField("TC Item1 \\f a \\l 1");
4949

5050
editor.InsertBreak(BreakType.LineBreak);
5151
editor.InsertText("Text after");
52-
53-
54-
{{endregion}}
52+
</code></pre>
5553

5654
This type of field does not have a result and there is no need to be updated.
5755

libraries/radwordsprocessing/concepts/fields/time-field.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ __Example 1__ demonstrates how you can insert a merge field.
4040

4141
#### __[C#] Example 1: Insert merge field__
4242

43-
{{region cs-radwordsprocessing-concepts-time-field_0}}
44-
43+
<pre><code>
4544
editor.InsertField("TIME \\@ \"h:mm:ss am/pm\"", "«to be updated»");
46-
{{endregion}}
45+
</code></pre>
4746

4847

4948
After updating the field the result would be "_5:28:34 PM_" (check [Updating Fields](https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/concepts/fields/fields#updating-fields)).

libraries/radwordsprocessing/concepts/fields/toa-field.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ __Example 1__ demonstrates how you can insert a TOA field.
4242

4343
#### __[C#] Example 1: Insert TOA field__
4444

45-
{{region cs-radwordsprocessing-concepts-toa-field_0}}
46-
45+
<pre><code>
4746
var document = new RadFlowDocument();
4847
var editor = new RadFlowDocumentEditor(document);
4948

5049
editor.InsertField("TOA \\h \\c \"3\" \\p");
51-
52-
{{endregion}}
50+
</code></pre>
5351

5452

5553

0 commit comments

Comments
 (0)