[gnome-devel-docs] tutorials <javascript>: Adds page explaining how to set up gedit



commit 006c87e079dcccad2eacfb7d2cbb9bd83607b3cf
Author: Taryn Fox <jewelfox fursona net>
Date:   Wed Jul 18 07:05:12 2012 -0400

    tutorials <javascript>: Adds page explaining how to set up gedit

 platform-demos/C/media/gediteditor.png |  Bin 0 -> 34835 bytes
 platform-demos/C/media/geditview.png   |  Bin 0 -> 36381 bytes
 platform-demos/C/set-up-gedit.page     |   45 ++++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/platform-demos/C/media/gediteditor.png b/platform-demos/C/media/gediteditor.png
new file mode 100644
index 0000000..cb1d8e4
Binary files /dev/null and b/platform-demos/C/media/gediteditor.png differ
diff --git a/platform-demos/C/media/geditview.png b/platform-demos/C/media/geditview.png
new file mode 100644
index 0000000..5a5cf78
Binary files /dev/null and b/platform-demos/C/media/geditview.png differ
diff --git a/platform-demos/C/set-up-gedit.page b/platform-demos/C/set-up-gedit.page
new file mode 100644
index 0000000..9b1e80e
--- /dev/null
+++ b/platform-demos/C/set-up-gedit.page
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<page xmlns="http://projectmallard.org/1.0/";
+      xmlns:xi="http://www.w3.org/2001/XInclude";
+      type="topic" style="task"
+      id="set-up-gedit.js">
+  <info>
+    <revision version="0.1" date="2012-07-17" status="draft"/>
+
+    <credit type="author copyright">
+      <name>Taryn Fox</name>
+      <email>jewelfox fursona net</email>
+      <years>2012</years>
+    </credit>
+
+  </info>
+
+  <title>Set up gedit for JavaScript development</title>
+  <p>This tutorial will show you how to set up <link href="http://projects.gnome.org/gedit/";>gedit,</link> GNOME's basic text editor, so that it has a handful of extra features which are useful for writing JavaScript code.</p>
+
+  <section id="view">
+    <title>Making code clearer</title>
+    <p>Click on <gui>Edit</gui> in gedit's menu bar, then click on <gui>Preferences.</gui> You should see something like this:</p>
+    <media type="image" mime="image/png" src="media/geditview.png"/>
+    <p>Here are the options you want to make sure are turned on.</p>
+    <steps>
+      <item><p><gui>Display line numbers</gui> will help you compare the code you type in with the original, and make it easier to see which line is causing an error if there is a bug.</p></item>
+      <item><p><gui>Highlight current line</gui> makes it easier to see which line you're on, when you have to go back and forth a lot.</p></item>
+      <item><p><gui>Highlight matching brackets</gui> helps you make sure you didn't leave out a bracket by accident.</p></item>
+    </steps>
+  </section>
+
+  <section id="edit">
+    <title>Making editing easier</title>
+    <p>In gedit's <gui>Preferences</gui> dialog, click on the <gui>Editor</gui> tab. You should see something like this:</p>
+    <media type="image" mime="image/png" src="media/gediteditor.png"/>
+    <p>Here, you want to have <gui>Enable automatic indentation</gui> turned on. This means that when you hit <key>Enter</key> the cursor stays indented as far as the last line was. This is extremely useful when writing JavaScript code, since it uses indentation to make it clearer which parts do what.</p>
+    <note style="tip"><p>If you want to share code with other people who write GNOME JavaScript applications, you'll also want to set <gui>Tab width</gui> to 4 and turn on <gui>Insert spaces instead of tabs.</gui></p></note>
+  </section>
+
+
+
+
+
+
+</page>



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