forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 35729 - in forrest/trunk/src: core/fresh-site/src/documentation/content/xdocs/samples documentation/content/xdocs/docs
Date Thu, 05 Aug 2004 06:42:49 GMT
Author: crossley
Date: Wed Aug  4 23:42:49 2004
New Revision: 35729

Modified:
   forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/sample.xml
   forrest/trunk/src/documentation/content/xdocs/docs/document-v13.xml
Log:
Fix the formatting of the "source" demo. Add demo of CDATA.


Modified: forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/sample.xml
==============================================================================
--- forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/sample.xml	(original)
+++ forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/sample.xml	Wed
Aug  4 23:42:49 2004
@@ -171,21 +171,32 @@
         <title>Showing preformatted source code</title> 
         <p>Enough about these sections. Let's have a look at more interesting
           elements, <code>&lt;source&gt;</code> for instance:</p>

-        <source>// This example is from the book _Java in a Nutshell_ by David Flanagan.
-          // Written by David Flanagan.  Copyright (c) 1996 O'Reilly &amp; Associates.
-          // You may study, use, modify, and distribute this example for any purpose.
-          // This example is provided WITHOUT WARRANTY either expressed or implied.
+        <source>
+// This example is from the book _Java in a Nutshell_ by David Flanagan.
+// Written by David Flanagan.  Copyright (c) 1996 O'Reilly &amp; Associates.
+// You may study, use, modify, and distribute this example for any purpose.
+// This example is provided WITHOUT WARRANTY either expressed or implied.
 
-          import java.applet.*;    // Don't forget these import statements!
-          import java.awt.*;
+import java.applet.*;    // Don't forget these import statements!
+import java.awt.*;
 
-          public class FirstApplet extends Applet {
-          // This method displays the applet.
-          // The Graphics class is how you do all drawing in Java.
-          public void paint(Graphics g) {
-          g.drawString("Hello World", 25, 50);
-          }
-          }</source>
+public class FirstApplet extends Applet {
+    // This method displays the applet.
+    // The Graphics class is how you do all drawing in Java.
+    public void paint(Graphics g) {
+        g.drawString("Hello World", 25, 50);
+    }
+}</source>
+        <p>CDATA sections are used within 
+          <code>&lt;source&gt;</code> elements so that you can write
pointy
+           brackets without needing to escape them with messy
+          <code>&amp;lt;</code> entities ...
+        </p> 
+        <source><![CDATA[
+<pointy>
+  easy
+</pointy>
+]]></source>
         <p>Please take care to still use a sensible line-length within your
           source elements.</p>
       </section>

Modified: forrest/trunk/src/documentation/content/xdocs/docs/document-v13.xml
==============================================================================
--- forrest/trunk/src/documentation/content/xdocs/docs/document-v13.xml	(original)
+++ forrest/trunk/src/documentation/content/xdocs/docs/document-v13.xml	Wed Aug  4 23:42:49
2004
@@ -171,21 +171,32 @@
         <title>Showing preformatted source code</title> 
         <p>Enough about these sections. Let's have a look at more interesting
           elements, <code>&lt;source&gt;</code> for instance:</p>

-        <source>// This example is from the book _Java in a Nutshell_ by David Flanagan.
-          // Written by David Flanagan.  Copyright (c) 1996 O'Reilly &amp; Associates.
-          // You may study, use, modify, and distribute this example for any purpose.
-          // This example is provided WITHOUT WARRANTY either expressed or implied.
+        <source>
+// This example is from the book _Java in a Nutshell_ by David Flanagan.
+// Written by David Flanagan.  Copyright (c) 1996 O'Reilly &amp; Associates.
+// You may study, use, modify, and distribute this example for any purpose.
+// This example is provided WITHOUT WARRANTY either expressed or implied.
 
-          import java.applet.*;    // Don't forget these import statements!
-          import java.awt.*;
+import java.applet.*;    // Don't forget these import statements!
+import java.awt.*;
 
-          public class FirstApplet extends Applet {
-          // This method displays the applet.
-          // The Graphics class is how you do all drawing in Java.
-          public void paint(Graphics g) {
-          g.drawString("Hello World", 25, 50);
-          }
-          }</source>
+public class FirstApplet extends Applet {
+    // This method displays the applet.
+    // The Graphics class is how you do all drawing in Java.
+    public void paint(Graphics g) {
+        g.drawString("Hello World", 25, 50);
+    }
+}</source>
+        <p>CDATA sections are used within 
+          <code>&lt;source&gt;</code> elements so that you can write
pointy
+           brackets without needing to escape them with messy
+          <code>&amp;lt;</code> entities ...
+        </p> 
+        <source><![CDATA[
+<pointy>
+  easy
+</pointy>
+]]></source>
         <p>Please take care to still use a sensible line-length within your
           source elements.</p>
       </section>

Mime
View raw message