Skip to content
David C. Rankin edited this page Feb 22, 2017 · 12 revisions

Welcome to the Gtkwrite wiki!

The Gtkwrite editor is a project written in C using Gtk+2 that started as a quick small editor and has had bits added to it over time. It will compile with GtkSourceView (for syntax highlighting, etc.) using the make with=-DWGTKSOURCEVIEW2 define or it can be compiled without GtkSourceView (default) by simply issuing the make command.

Features include configurable font selection, syntax highlighting (with GtkSourceView), Incremental/global Find/Replace with options to search the whole buffer, from cursor, or within selection bounds. Find/Replace can be case sensitive/insensitive, whole-word only, and can be performed in the forward/backward direction. A Goto Line dialog provides quick access to any line in large files. The Goto dialog will search once and close if the [Enter] key is used, or remain open allowing multiple line navigation using the [Keypad Enter] (you can input the line or use a slider to relative positions in the file).

A preferences dialog allows setting Appearance and Editing settings (tab/softtab settings, smart_backspace to softtab stops, word-wrap, smart home-end cursor movement, File Cleanup on save (remove trailing whitespace, etc). Additional feature include Join-Lines, undo/redo and Line Numbers (with GtkSourceView), Saved File Reload, Insert File at Cursor, and all the standard Cut, Copy, Paste, Delete, etc..

There is always more to do and I'm sure there are some better ways to do them, but on balance the project code and source files are in fairly good shape and reasonably commented. Until time permits for further expansion here, I'll leave you with a few screenshots of the menu layout and the primary dialogs:


File Menu

Edit Menu

Tools Menu

Find/Replace Dialog

Settings/Preferences

(*note: if the images are not available, iptables is most likely to blame.. on my end, I've included links to the images as well.)

Clone this wiki locally