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.
- As root or with sudo prepended
RedHat, Fedora, CentOS, Scientific Linux
yum install gedit yum install gedit-plugins
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.
- gedit last Win32 binary (2.30)
In order to help following MediaWiki coding convetions and making programming easier for you, you may enable some of the installed plugins.
- 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
- 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
- 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
- Extracted from Wikipedia page