Chapter 3.3.4: Leafpad
======================

Description
-----------
Leafpad is a simple GTK+ text editor that emphasizes simplicity, similar to gedit that ships with Ubuntu.
It is simple to use and starts up quickly, while still containing essential features, being a decent, lightweight text editor that can be used for development despite its lightness.

Leafpad allows to perform basic text operations, including unlimited undo/redo and drag-and-drop. It automatically detects codeset, but you can also change it manually. It can create automatic indents and display line numbers, which is useful for programming. You can also print text from this app.


Screenshot
----------
.. image:: leafpad-screenshot.png
   :width: 80%

Version
-------
Lubuntu currently ships with Leafpad v0.8.18.

How to launch
-------------
To open Leafpad with a blank document, select Leafpad entry from Accessories category in Lubuntu Menu or enter `leafpad` in Run dialog (Alt+F2).
When running from terminal, you can also enter `leafpad [filename]` to open the file of your choice.

Usage
-----

Leafpad main window consists of text box and menu bar. The File menu allows to open, save, and print file or create blank document. Edit menu allows to perform basic operations like undoing, redoing, copying, pasting, and deleting. In the Search menu find and replace options are available. In Options, you can change font, enable word wrapping, line numbering, and automatic creating of indents.
