Some highlighting fixes.
authorDavid Griffith <dave@661.org>
Mon, 25 Apr 2016 06:28:10 +0000 (23:28 -0700)
committerDavid Griffith <dave@661.org>
Mon, 25 Apr 2016 06:28:10 +0000 (23:28 -0700)
appendices/c.rst
appendices/d.rst

index abbc6292de1be272711f8454ebb32ff1a3988726..2fd1e4efd136a5923d899b645b4fb10d630235fc 100644 (file)
@@ -2,6 +2,8 @@
  Appendix C -- "William Tell" story
 ======================================
 
  Appendix C -- "William Tell" story
 ======================================
 
+.. highlight:: transcript
+
 .. only:: html
 
   .. image:: /images/picW.png
 .. only:: html
 
   .. image:: /images/picW.png
@@ -62,7 +64,9 @@ reached by the end of Chapter 6, you’ll get this::
        Tell.inf(47): Error: No such constant as "quiver"
        Compiled with 3 errors and 3 warnings
 
        Tell.inf(47): Error: No such constant as "quiver"
        Compiled with 3 errors and 3 warnings
 
-However, by adding these lines to the end of your game file::
+However, by adding these lines to the end of your game file:
+
+.. code-block:: inform
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 6
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 6
@@ -101,7 +105,9 @@ so although the game compiles successfully, it still causes an error to
 be reported at run-time.
 
 The best way round this is to extend the definition of our ``Room`` 
 be reported at run-time.
 
 The best way round this is to extend the definition of our ``Room`` 
-class, thus::
+class, thus:
+
+.. code-block:: inform
 
        Class  Room
          with description "UNDER CONSTRUCTION",
 
        Class  Room
          with description "UNDER CONSTRUCTION",
@@ -148,7 +154,9 @@ the end of Chapter 6. But once we reach the end of Chapter 7, things
 have moved on, and we now need a different set of stub objects. For a 
 test compilation at this point, remove the previous set of stubs, and 
 instead add these -- ``south_square`` and ``apple`` objects, and a dummy 
 have moved on, and we now need a different set of stub objects. For a 
 test compilation at this point, remove the previous set of stubs, and 
 instead add these -- ``south_square`` and ``apple`` objects, and a dummy 
-action handler to satisfy the ``Talk`` action in Helga’s life property::
+action handler to satisfy the ``Talk`` action in Helga’s life property:
+
+.. code-block:: inform
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 7
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 7
@@ -159,7 +167,9 @@ action handler to satisfy the ``Talk`` action in Helga’s life property::
        [ TalkSub; ];
 
 Similarly, at the end of Chapter 8, replace the previous stubs by these 
        [ TalkSub; ];
 
 Similarly, at the end of Chapter 8, replace the previous stubs by these 
-if you wish to check that the game compiles::
+if you wish to check that the game compiles:
+
+.. code-block:: inform
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 8
 
        ! ===============================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 8
index 8ff650fa7398a0602f854bf59c112b7f0257b6af..09f25a1255a7e0bb3f10b29c9ffd1ab586108b36 100644 (file)
@@ -35,14 +35,18 @@ Compile-as-you-go
 you type the code sequentially as you read through the guide, the game 
 won't compile until you reach the end of Chapter 13. To compile and test 
 as you go, add these stubs to the end of the game file when you reach 
 you type the code sequentially as you read through the guide, the game 
 won't compile until you reach the end of Chapter 13. To compile and test 
 as you go, add these stubs to the end of the game file when you reach 
-the end of Chapter 10::
+the end of Chapter 10:
+
+.. code-block:: inform
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 10
        Room    cafe;
        Object  clothes;
 
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 10
        Room    cafe;
        Object  clothes;
 
-Replace those stubs with these at the end of Chapter 11::
+Replace those stubs with these at the end of Chapter 11:
+
+.. code-block:: inform
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 11
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 11
@@ -51,7 +55,9 @@ Replace those stubs with these at the end of Chapter 11::
        Object  clothes;
        Object  costume;
 
        Object  clothes;
        Object  costume;
 
-and with these at the end of Chapter 12::
+and with these at the end of Chapter 12:
+
+.. code-block:: inform
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 12
 
        ! ================================================================
        ! TEMPORARY DEFINITIONS NEEDED TO COMPILE AT THE END OF CHAPTER 12