Skip to content

Commit f420bb9

Browse files
committed
docs: update code block formatting in README files for consistency
1 parent 57d4a2d commit f420bb9

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

Docs/README.egosoft

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ There the is example of the diff files created by tool:
6060
[list]
6161
[*] with add operation:
6262
[/list]
63-
[code=xml]
63+
[code]
6464
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
6565
<diff>
6666
<add sel="//ware[@id=&quot;scanningarrays&quot;]" pos="before">
@@ -74,16 +74,16 @@ There the is example of the diff files created by tool:
7474
</ware>
7575
</add>
7676
</diff>
77-
```
77+
[/code]
7878
[list]
7979
[*] with replace operation:
8080
[/list]
81-
```xml
81+
[code]
8282
<?xml version='1.0' encoding='UTF-8'?>
8383
<diff>
8484
<replace sel="//do_if[@value=&quot;@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active&quot;]/@value">@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'ProtectSector') and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active</replace>
8585
</diff>
86-
```
86+
[/code]
8787

8888
[size=120][u]Path options[/u][/size]
8989

@@ -93,7 +93,7 @@ The [b]--only-full-path[/b] option will generate only the full path to the eleme
9393

9494
Example:
9595

96-
[/code]xml
96+
[code]
9797
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
9898
<diff>
9999
<add sel="/wares/ware[@id=&quot;scanningarrays&quot;]" pos="before">
@@ -107,15 +107,15 @@ Example:
107107
</ware>
108108
</add>
109109
</diff>
110-
[code]
110+
[/code]
111111

112112
[size=115][u]Use all attributes in XPath[/u][/size]
113113

114114
The [b]--use-all-attributes[/b] option will generate the [b]sel[/b] attribute with all attributes of the element in the XML file. It is mean - there will be all attributes of the element in the [b]sel[/b] attribute of the [b]add[/b], [b]replace[/b] or [b]remove[/b] element.
115115

116116
Example:
117117

118-
[/code]xml
118+
[code]
119119
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
120120
<diff>
121121
<add sel="/wares/ware[@id=&quot;scanningarrays&quot;][@name=&quot;{20201,3301}&quot;][@description=&quot;{20201,3302}&quot;][@factoryname=&quot;{20201,3304}&quot;][@group=&quot;hightech&quot;][@transport=&quot;container&quot;][@volume=&quot;38&quot;][@tags=&quot;container economy&quot;]" pos="before">
@@ -129,13 +129,13 @@ Example:
129129
</ware>
130130
</add>
131131
</diff>
132-
[code]
132+
[/code]
133133

134134
[size=125][u]How to apply a diff file[/u][/size]
135135

136136
There is a command line help for the [b]XMLPatch[/b] tool:
137137

138-
[/code]
138+
[code]
139139
XMLPatch 0.2.13
140140
Developed by Chem O`Dun
141141

@@ -152,21 +152,21 @@ Developed by Chem O`Dun
152152
--help Display this help screen.
153153

154154
--version Display version information.
155-
[code]
155+
[/code]
156156

157157
Example:
158158

159-
[/code]
160-
XMLPatch.exe -o vanilla.xml -d diff.xml -u modified.xml
161159
[code]
160+
XMLPatch.exe -o vanilla.xml -d diff.xml -u modified.xml
161+
[/code]
162162

163163
[size=125][u]Example of resulting patched XML files[/u][/size]
164164

165165
There the is example of the patched XML files created by tool:
166166
[list]
167167
[*] with add operation:
168168
[/list]
169-
```xml
169+
[code]
170170
<ware id="satellite_mk2" name="{20201,20401}" description="{20201,20402}" transport="equipment" volume="1" tags="equipment satellite">
171171
<price min="44380" average="52215" max="60045"/>
172172
<production time="60" amount="1" method="default" name="{20206,101}">
@@ -193,16 +193,16 @@ There the is example of the patched XML files created by tool:
193193
<component ref="xenon_psi_emitter_macro" amount="0"/>
194194
<use threshold="0"/>
195195
</ware>
196-
```
196+
[/code]
197197
[list]
198198
[*] with replace operation:
199199
[/list]
200-
```xml
200+
[code]
201201
<set_to_default_flight_control_model object="this.assignedcontrolled"/>
202202
<set_value name="$defaultorder" exact="this.assignedcontrolled.defaultorder"/>
203203
<do_if value="@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectSector') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active">
204204
<set_value name="$speakline" exact="10304" comment="Awaiting orders."/>
205-
```
205+
[/code]
206206

207207
[size=125][u]If output XML is a directory[/u][/size]
208208

@@ -222,15 +222,15 @@ The logic will be a next:
222222
[/list]
223223
Example:
224224

225-
[/code]
226-
XMLDiff.exe -o vanilla_dir -m modified_dir -d diff_dir
227225
[code]
226+
XMLDiff.exe -o vanilla_dir -m modified_dir -d diff_dir
227+
[/code]
228228

229229
or
230230

231-
[/code]
231+
[code]
232232
XMLPatch.exe -o vanilla_dir -d diff_dir -u modified_dir
233-
```
233+
[/code]
234234

235235
[size=130][u]Issues reporting[/u][/size]
236236

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ There the is example of the diff files created by tool:
5858

5959
- with add operation:
6060

61-
```xml
61+
```
6262
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
6363
<diff>
6464
<add sel="//ware[@id=&quot;scanningarrays&quot;]" pos="before">
@@ -76,7 +76,7 @@ There the is example of the diff files created by tool:
7676
7777
- with replace operation:
7878
79-
```xml
79+
```
8080
<?xml version='1.0' encoding='UTF-8'?>
8181
<diff>
8282
<replace sel="//do_if[@value=&quot;@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active&quot;]/@value">@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'ProtectSector') and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active</replace>
@@ -91,7 +91,7 @@ The `--only-full-path` option will generate only the full path to the element in
9191
9292
Example:
9393
94-
```xml
94+
```
9595
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
9696
<diff>
9797
<add sel="/wares/ware[@id=&quot;scanningarrays&quot;]" pos="before">
@@ -113,7 +113,7 @@ The `--use-all-attributes` option will generate the `sel` attribute with all att
113113
114114
Example:
115115
116-
```xml
116+
```
117117
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
118118
<diff>
119119
<add sel="/wares/ware[@id=&quot;scanningarrays&quot;][@name=&quot;{20201,3301}&quot;][@description=&quot;{20201,3302}&quot;][@factoryname=&quot;{20201,3304}&quot;][@group=&quot;hightech&quot;][@transport=&quot;container&quot;][@volume=&quot;38&quot;][@tags=&quot;container economy&quot;]" pos="before">
@@ -164,7 +164,7 @@ There the is example of the patched XML files created by tool:
164164
165165
- with add operation:
166166
167-
```xml
167+
```
168168
<ware id="satellite_mk2" name="{20201,20401}" description="{20201,20402}" transport="equipment" volume="1" tags="equipment satellite">
169169
<price min="44380" average="52215" max="60045"/>
170170
<production time="60" amount="1" method="default" name="{20206,101}">
@@ -195,7 +195,7 @@ There the is example of the patched XML files created by tool:
195195
196196
- with replace operation:
197197
198-
```xml
198+
```
199199
<set_to_default_flight_control_model object="this.assignedcontrolled"/>
200200
<set_value name="$defaultorder" exact="this.assignedcontrolled.defaultorder"/>
201201
<do_if value="@$speak and not this.assignedcontrolled.nextorder and (@$defaultorder.id != 'Patrol') and (@$defaultorder.id != 'ProtectSector') and (@$defaultorder.id != 'ProtectPosition') and (@$defaultorder.id != 'ProtectShip') and (@$defaultorder.id != 'ProtectStation') and (@$defaultorder.id != 'Plunder') and (@$defaultorder.id != 'Police') and (not this.assignedcontrolled.commander or (this.assignedcontrolled.commander == player.occupiedship)) and notification.npc_await_orders.active">

0 commit comments

Comments
 (0)