Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: ch01.xml

Issue 103483002: add back dart:mirrors content, remove dart:isolate, misc. tweaks/updates (Closed) Base URL: https://github.com/dart-lang/dart-up-and-running-book.git@master
Patch Set: emphasize MirrorsUsed lots Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ch00.xml ('k') | ch02.xml » ('j') | ch03.xml » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <chapter id="ch01"> 4 <chapter id="ch01">
5 <?dbhtml stop-chunking?> 5 <?dbhtml stop-chunking?>
6 6
7 <title>Quick Start</title> 7 <title>Quick Start</title>
8 8
9 <para>Welcome to Dart, an open-source, batteries-included developer platform 9 <para>Welcome to Dart, an open-source, batteries-included developer platform
10 for building structured HTML5 web apps. This chapter tells you why Google 10 for building structured HTML5 web apps. This chapter tells you why Google
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 <programlisting format="linespecific"><remark>lang-dart 121 <programlisting format="linespecific"><remark>lang-dart
122 </remark>import 'dart:html'; 122 </remark>import 'dart:html';
123 123
124 main() { 124 main() {
125 var button = new ButtonElement(); 125 var button = new ButtonElement();
126 button..id = 'confirm' 126 button..id = 'confirm'
127 ..text = 'Click to Confirm' 127 ..text = 'Click to Confirm'
128 ..classes.add('important') 128 ..classes.add('important')
129 ..onClick.listen((e) =&gt; window.alert('Confirmed!')); 129 ..onClick.listen((e) =&gt; window.alert('Confirmed!'));
130 query('#registration').children.add(button); 130 querySelector('#registration').children.add(button);
131 }</programlisting> 131 }</programlisting>
132 132
133 <para>You’ll learn about the Dart language and libraries in Chapters <xref 133 <para>You’ll learn about the Dart language and libraries in Chapters <xref
134 linkend="ch02" xrefstyle="select: labelnumber" /> and <xref linkend="ch03" 134 linkend="ch02" xrefstyle="select: labelnumber" /> and <xref linkend="ch03"
135 xrefstyle="select: labelnumber" /> respectively.</para> 135 xrefstyle="select: labelnumber" /> respectively.</para>
136 </sect1> 136 </sect1>
137 137
138 <sect1 id="ch01-whats-cool"> 138 <sect1 id="ch01-whats-cool">
139 <title>What’s Cool About Dart</title> 139 <title>What’s Cool About Dart</title>
140 140
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 and it’s available under a BSD-style license. You can find the project’s 213 and it’s available under a BSD-style license. You can find the project’s
214 <ulink url="http://dart.googlecode.com">issue tracker and source 214 <ulink url="http://dart.googlecode.com">issue tracker and source
215 repository</ulink> online. Maybe you’ll submit the next patch?</para> 215 repository</ulink> online. Maybe you’ll submit the next patch?</para>
216 </sect1> 216 </sect1>
217 217
218 <sect1 id="ch01-editor"> 218 <sect1 id="ch01-editor">
219 <title>Up and Running</title> 219 <title>Up and Running</title>
220 220
221 <para>Now that you know something about Dart, get ready to code! These 221 <para>Now that you know something about Dart, get ready to code! These
222 instructions feature the open-source Dart Editor tool. When you download 222 instructions feature the open-source Dart Editor tool. When you download
223 Dart, you not only get Dart Editor, 223 Dart, you not only get Dart Editor, but also tools such as the
224 but also tools such as the Dart-to-JavaScript compiler and a version of 224 Dart-to-JavaScript compiler and a version of Chromium (nicknamed
225 Chromium (nicknamed <emphasis>Dartium</emphasis>) that includes the Dart 225 <emphasis>Dartium</emphasis>) that includes the Dart VM.</para>
226 VM.</para>
227 226
228 <note> 227 <note>
229 <para>If you run into trouble installing and using Dart Editor, see 228 <para>If you run into trouble installing and using Dart Editor, see
230 <ulink 229 <ulink
231 url="http://www.dartlang.org/tools/editor/troubleshoot.html">Troubleshooti ng 230 url="http://www.dartlang.org/tools/editor/troubleshoot.html">Troubleshooti ng
232 Dart Editor.</ulink></para> 231 Dart Editor.</ulink></para>
233 </note> 232 </note>
234 233
235 <sect2 id="ch01-editor-download"> 234 <sect2 id="ch01-editor-download">
236 <title>Step 1: Download and Install the Software</title> 235 <title>Step 1: Download and Install the Software</title>
237 236
238 <para>In this step, you’ll install Dart Editor and, if necessary, a Java 237 <para>In this step, you’ll install Dart Editor and, if necessary, a Java
239 runtime environment. (To avoid having to modify the PATH environment 238 runtime environment. (To avoid having to modify the PATH environment
240 variable, you can install the JRE under your Dart installation 239 variable, you can install the JRE under your Dart installation
241 directory, in a subdirectory named <code>jre</code>.)</para> 240 directory, in a subdirectory named <code>jre</code>.)</para>
242 241
243 <orderedlist continuation="restarts" inheritnum="ignore"> 242 <orderedlist continuation="restarts" inheritnum="ignore">
244 <listitem> 243 <listitem>
245 <para><ulink url="http://dartlang.org/#get-started">Download 244 <para><ulink url="http://dartlang.org/#get-started">Download
246 Dart</ulink>.</para> 245 Dart</ulink>.</para>
247 </listitem> 246 </listitem>
248 247
249 <listitem> 248 <listitem>
250 <para>Unzip the file you downloaded. The resulting directory, which we ’ll call your 249 <para>Unzip the file you downloaded. The resulting directory, which
251 <emphasis>Dart installation directory</emphasis>, contains the 250 we’ll call your <emphasis>Dart installation directory</emphasis>,
252 <code>DartEditor</code> executable file and several subdirectories, 251 contains the <code>DartEditor</code> executable file and several
253 including a <code>samples</code> directory.</para> 252 subdirectories, including a <code>samples</code> directory.</para>
254 </listitem> 253 </listitem>
255 254
256 <listitem> 255 <listitem>
257 <para>If you don’t already have a Java runtime, download and install 256 <para>If you don’t already have a Java runtime, download and install
258 it. Dart Editor requires Java version 6 or higher.</para> 257 it. Dart Editor requires Java version 6 or higher.</para>
259 </listitem> 258 </listitem>
260 </orderedlist> 259 </orderedlist>
261 </sect2> 260 </sect2>
262 261
263 <sect2 id="ch01-editor-launch"> 262 <sect2 id="ch01-editor-launch">
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 <title>Send feedback</title> 439 <title>Send feedback</title>
441 440
442 <para>Click the <emphasis role="bold">SEND FEEDBACK</emphasis> link 441 <para>Click the <emphasis role="bold">SEND FEEDBACK</emphasis> link
443 (at the upper right of the Dart Editor window) whenever you notice a 442 (at the upper right of the Dart Editor window) whenever you notice a
444 problem or have an idea for improving Dart Editor. We’ll open a new 443 problem or have an idea for improving Dart Editor. We’ll open a new
445 issue for you, if appropriate, without disclosing your sensitive or 444 issue for you, if appropriate, without disclosing your sensitive or
446 personally identifiable information.</para> 445 personally identifiable information.</para>
447 </sect3> 446 </sect3>
448 </sect2> 447 </sect2>
449 </sect1> 448 </sect1>
450 </chapter> 449 </chapter>
OLDNEW
« no previous file with comments | « ch00.xml ('k') | ch02.xml » ('j') | ch03.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698