Skip to content
pepeleproso edited this page Sep 13, 2010 · 1 revision

gPHPEdit comes with a wide array of features catering specifically to your HTML/PHP/CSS/SQL editing requirements. On top of being lightweight and fast it comes with the following features that makes web development using gPHPEdit a pleasurable experiences.

Syntax Highlighting

Easily see where your strings are broken with Syntax Highlighting

Highlights PHP/HTML

gPHPEdit will recognise PHP and HTML files and colour highlight the file during editing. It recognises all PHP functions up to and including PHP 5.

Highlights CSS

gPHPEdit will recognise CSS files and colour highlight the file during editing. It highlights valid CSS classes and descriptors.

Highlights SQL/Perl/Python/C/C++ (BETA)

gPHPEdit will recognise SQL/Perl/Python/C/C++ files and colour highlight the file during editing. This functionality is in it’s early stages of development and may have bugs. The files will not be affected, but may not appear correctly highlighted.

Coding Assistance

Can’t remember the parameters for eregi? Let gPHPEdit help you…

Dropdown Function Lists

Start typing the first few characters of a PHP function name and gPHPEdit will drop down a list of all the PHP functions that match. It recognises all PHP functions up to and including PHP 5.
Auto-completion will recognise also custom PHP functions and PHP variables.

Autocompletion of braces and quotes

gPHP will complete close braces and quotes for you so you don’t forgive them. Also will Highlights matching braces and quotes.

Function Parameter Popups

After typing the name of a PHP function and hitting the open parenthesis “(” button, a list of the required/desired parameters will appear to help you remember the order of them.

Class/Function Browser

gPHPEdit will automatically examine your open files and display a list of all the functions and classes in those files in a tree view on the left hand side of the editor. This view can be hidden/shown with a keypress for those times when you wish to use the full width of your screen.

Syntax Checking/Navigating Code

Problems with your code, the wavy red line will show you where!

Lint Checking

If you have the command-line binary installed for PHP, gPHPEdit can use it to do a “lint” check on your code. If the command line binary finds a problem it will underline the appropriate line with a wavy red-line (like Microsoft Word’s spell check).
The bottom panel will display the error messages for easy read and double click will jump to the line on the file which contain the error.
This functionality also works on Perl files.

Code Templates

Streamline your coding by allowing gPHPEdit to insert commonly used code, comments or structures

Starter Structures included

Within the editor type the name of a code template and hit Ctrl+J and it will insert the template you typed (keeping consistent indentation). It comes with a few built in, try typing ife and hitting Ctrl+J (immediately after the ‘e’). They’re simple examples but should be enough to give you a start before you add your own.

User Configurable

All the templates that come with the editor can be deleted or edited and you can add your own ones. Simple go to the new preferences dialog and the PHP Coding tab, click add and type in the name and code for your template. We advise to keep the name in lowercase and you must not use spaces in the name.

Text File Storage

All the templates are kept in a text file (called ~/.gphpedit/templates.txt) which is created when you first run the editor. If you wish to use templates you’ve made for another system, you could write a script to convert them for this format. This text file is in a neat format, each line is name {TAB} content. The content must be on one line, so if you want to use newline use a slash followed by an “n” (note: not the \n character but \ then n). If you want to use tabs in your template, use a slash followed by a “t”. If you want the cursor positioned at a specific point instead of the end of the insertion, use a pipe character. Having a look at the file after running the editor once is probably the clearest way of understanding this.

Incremental Search

Either click in the box or hit Ctrl+I to start typing some text to match. As you type the editor will find text that matches. If you know there are multiple matches, hit Enter each time to cycle through them. When you are finished searching, hit Escape to send the focus to the editor to make the changes at the last found position.

Go To Line

If you know the line you wish to edit (for example from an in-browser error message), click in the box or hit Ctrl+G to type a line number. When you press Enter gPHPEdit will go straight to that line ready for editing!

Bookmarks

gPHPEdit support bookmarks. you can add a bookmark hit Ctrl + F2 or click the left margin, then you can cycle through them pressing F2.

Integrated PHP Help

No more hammering the PHP manual pages online, now it’s all integrated

Context Sensitive

Simply highlight the PHP function you wish to lookup, hit F1 and the desired help page will open in a new tab within gPHPEdit (provided that you have the PHP documentation installed in the correct place and that you have the webkit component installed). Since version 0.9.98 if you don’t have the php documentation installed gPHPEdit will automatically search for help in the PHP manual pages online.

Hyperlinked

After viewing one of the context sensitive pages, the links within the page are active so you can click from page to page to view related help pages.

Fast Startup

Because the help system is an integral part of gPHPEdit, there is no startup time when hitting F1 – the page loads almost immediately after the button is pressed!

File Interface

Multiple document interface

gPHPEdit can have multiple files open in different tabs.

Recently Used Files

gPHPEdit remembers up to 10 of your last used files for quick reloading (File|Reopen recent).

Virtual File System

gPHPEdit uses GVFS for opening files so opening/saving to remote locations over SSH/SFTP/FTP is possible.

Last Folder Used

gPHPEdit’s file open dialog remembers your last opened folder (unless you have an active file open, in which case it still reverts to that folder).

Empty File When Starting

To enable you to get typing quicker, gPHPEdit now opens an Untitled file when you start it.

Session file restore

gPHPEdit will remember your open files so when you close and open it again, you can keep working without need to open files again.

Fullscreen mode

gPHPEdit support fullscreen mode so you can work using the full size of your monitor also you can hide/show the UI elements like the statusbar, toolbars and side panel.