SMWCon Fall 2013/gedit

gedit is a text editor for the GNOME desktop environment, Mac OS X and Microsoft Windows. Designed as a general purpose text editor, gedit emphasizes simplicity and ease of use. It includes tools for editing source code and structured text such as markup languages.

Linux

 * As root or with sudo prepended

RedHat, Fedora, CentOS, Scientific Linux
yum install gedit yum install gedit-plugins

Debian, Ubuntu
apt-get install gedit apt-get install gedit-plugins

Mac OS X

 * gedit binaries (choose the most suitable for your Mac OS X version (3.2)
 * At the time of writing, 2013-10-25, last versions do not work with Mavericks. You can use previous one.


 * How to run gedit from the commandline.

Windows

 * gedit last Win32 binary (2.30)

Configuration
In order to help following MediaWiki coding convetions and making programming easier for you, you may enable some of the installed plugins.

Plugins selection


etc.
 * We suggest the following ones:
 * Bracket completion: it helps to have blocks of code properly delimited. Otherwise you will learn about any error caused by a missing bracket when you load the extension.
 * Code comment: it allows comment/uncomment a whole bunch of code. This makes trying things easier.
 * Draw spaces/tabs: it ensures avoiding having a mix of both of them.
 * Indent/unindent lines: you can also perform this by using Tab or Shift+Tab

View preferences



 * we highlight:
 * Display line numbers: when warnings or errors happen, you can easily find the issue
 * Highlight current line: it helps knowing where you are
 * Highlight matching bracket: it helps designing the programming blocks

Editor preferences



 * we highlight:
 * Using a width of 4, as suggested by MediaWiki coding style. In any case, this is only a visual thing and has no effect in the code
 * We will NOT insert spaces instead of tabs
 * Automatic indentation may help you writing code faster