LuaAPI: fix code syntax
authorWuzzy
Tue, 20 Feb 2018 14:51:05 +0000
changeset 1231 550b1afc9300
parent 1230 2cefe77fbeb7
child 1232 4ac63a5c0184
LuaAPI: fix code syntax
LuaAPI.wiki
--- a/LuaAPI.wiki	Tue Feb 20 14:48:32 2018 +0000
+++ b/LuaAPI.wiki	Tue Feb 20 14:51:05 2018 +0000
@@ -788,25 +788,17 @@
 Beware, the collision mask is often set by the engine as well.
 
 Examples:
-```
-SetGearCollisionMask(gear, 0xFF7F)
--- Ignore collision with current hedgehog
-```
+<code language="lua">SetGearCollisionMask(gear, 0xFF7F)
+-- Ignore collision with current hedgehog</code>
 
-```
-SetGearCollisionMask(gear, 0xFFFF)
--- Collide with everything
-```
+<code language="lua">SetGearCollisionMask(gear, 0xFFFF)
+-- Collide with everything</code>
 
-```
-SetGearCollisionMask(gear, 0x00FF)
--- Collide with hedgehogs and objects
-```
+<code language="lua">SetGearCollisionMask(gear, 0x00FF)
+-- Collide with hedgehogs and objects</code>
 
-```
-SetGearCollisionMask(gear, 0x0000)
--- Collide with nothing
-```
+<code language="lua">SetGearCollisionMask(gear, 0x0000)
+-- Collide with nothing</code>
 
 There are actual more flags availbable, but they are not as useful for use in Lua. You can find the full range of flags in the engine source code (in Pascal):
 https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l112
@@ -974,10 +966,9 @@
 
 Example:
 
-```
+<code language="lua">
 SetGearAIHints(uselessHog, aihDoesntMatter)
--- This makes AI hogs stop caring about attacking uselessHog
-```
+-- This makes AI hogs stop caring about attacking uselessHog</code>
 
 === <tt>!SetGearPos(gearUid, value) (0.9.18-dev)</tt> ===
 Sets the `Pos` value (not the position!) of the specified gear to specified value. See `GetGearPos` for more information.
@@ -1478,10 +1469,7 @@
 
 Example:
 
-```
-DeclareAchievement("height reached", teamname, "ClimbHome", -score)
-```
-
+<code language="lua">DeclareAchievement("height reached", teamname, "ClimbHome", -score)</code>
 Records a team's best height in !ClimbHome.
 
 === <tt>!ParseCommand(string)</tt> ===