Using gedit as a PHP Editor

This document describes how I've setup gedit as an editor (and really and IDE) for PHP development.

As you can see in this screenshot, I've got the syntax for a specific PHP function open in the bottom pane, a file-browser in the left pane, and syntax highlighting. You can't see that I can check the syntax with lint, take snapshots using my Clump Programming method, and more.

Plugins

I have the following plugins installed.

  • Color Picker
  • Document Statistics*
  • External Tools
  • File Browser Pane
  • Insert Date/Time*
  • Modelines*
  • Session Saver
  • Spell Checker*

* These ones are not specifically necessary for development.

External Tools

PHP Lookup

I've got the following command installed as the “PHP Lookup” tool.

xargs -I '{}' phpref '{}'

This uses my phpref.php script and a list of PHP functions that I stripped from the official documentation. It will pull up the syntax of the currently highlighted word. It will also pull all the matching functions, so highlighting “mysql” will list all the mysql related functions.

I have the hot-key <CTRL>-R assigned to this tool.

Snapshot

I have the following bash script installed as the “Snapshot” tool. Take a look at my Clump Programming page for more information about the system I use to keep track of previous versions.

#!/bin/bash
 
cd $GEDIT_CURRENT_DOCUMENT_DIR
 
snap $GEDIT_CURRENT_DOCUMENT_NAME
comments powered by Disqus
using_gedit_as_a_php_editor.txt · Last modified: 2020/06/01 22:53 (external edit)