seed r548 - in trunk/doc: . modules tutorial-standalone



Author: hortont
Date: Tue Dec 23 09:06:24 2008
New Revision: 548
URL: http://svn.gnome.org/viewvc/seed?rev=548&view=rev

Log:
Lots of little things.


Modified:
   trunk/doc/modules/readline.html
   trunk/doc/runtime.html
   trunk/doc/tutorial-standalone/tutorial.html

Modified: trunk/doc/modules/readline.html
==============================================================================
--- trunk/doc/modules/readline.html	(original)
+++ trunk/doc/modules/readline.html	Tue Dec 23 09:06:24 2008
@@ -7,7 +7,7 @@
 	<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
 </head>
 <body>
-<div id="header">Seed readline Module</div>
+<div id="header">Seed <i>readline</i> Module</div>
 <div id="subheader">v.0.3</div>
 <div class="section"><b>Usage</b></div>
 <p>

Modified: trunk/doc/runtime.html
==============================================================================
--- trunk/doc/runtime.html	(original)
+++ trunk/doc/runtime.html	Tue Dec 23 09:06:24 2008
@@ -48,17 +48,22 @@
 Seed.printf("%d %s %d\n", 2, " is not ", 5);
 
 var my_string = Seed.sprintf("%d + %d = %d", 2, 3, 2+3);
-var my_name = Seed.printf("[%s] is %d characters long!\n", my_string, my_string.length);
+var my_name = Seed.printf("[%s] is %d characters long!\n",
+                          my_string, my_string.length);
 </pre>
 <div class="section"><b>Seed.check_syntax</b>(code)</div>
 <p>
-Examines a segment of Javascript, looking for syntax errors. If errors are found, an exception is thrown, which can be caught with a try/catch block.
+Examines a segment of Javascript, looking for syntax errors. If errors are found, an exception is thrown, which can be caught with a try/catch block. You can examine the location of the syntax error with the <i>line</i> property of the returned exception.
 </p>
 <pre>
 try
-{ Seed.check_syntax("234[asdf"); }
+{
+    Seed.check_syntax("234[asdf");
+}
 catch(e)
-{ Seed.print("Something horrible happened!"); }
+{
+    Seed.print("Something horrible happened on line " + e.line + "!");
+}
 </pre>
 <div class="section"><b>Seed.fork</b>()</div>
 <p><i>Returns: pid of child (to parent); 0 (to child)</i></p>
@@ -269,7 +274,7 @@
                                      parameters: [GObject.TYPE_INT,
                                                   GObject.TYPE_STRING],
                                      return_type: Gtk.Window.type};
-	
+
         hello_signal_id = klass.install_signal(HelloSignalDefinition);
     },
 }

Modified: trunk/doc/tutorial-standalone/tutorial.html
==============================================================================
--- trunk/doc/tutorial-standalone/tutorial.html	(original)
+++ trunk/doc/tutorial-standalone/tutorial.html	Tue Dec 23 09:06:24 2008
@@ -5,6 +5,13 @@
 	<title>Seed Tutorial : Standalone</title>
 	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 	<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
+	<style type="text/css">
+		div.section
+		{
+			font-weight: bold;
+		}
+	</style>
+
 </head>
 <body>
 <div id="header">Seed Tutorial : Standalone</div>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]