This is "PHP mode Help", help file for the PHP mode in Alpha. For Alpha to find it, you must move this file to the "Help" folder located at the same level as the Alpha application itself.
This mode implements very basic mode-specific settings to write and edit PHP files in Alpha. It currently provides the following features:
PHP mode will be developed further in the future when AlphaX (a carbonized version of Alpha running on OSX) is available. Any contributions are welcome.
Open the "OPEN TO INSTALL" file. Opening this file tells Alpha that a new package has to be installed : the procedure is automatic. Alpha knows where to store the different elements of your PHP Mode package.
PHP mode defines electric expansions for the following keywords :
if, ifelse, ifelseif, elseif, while, do, for, foreach, foreachkey, switch, php
This means that you just have to type one of them and then hit the completion key (the Electric Completions package must be active) and they will expand to a complete structure which you can fill very easily : it contains electric tabs, ie bullet symbols, and you can jump from one to the following using the Tab key. For instance, typing 'do' (without the quotes) and completing yields :
do { } while ( );
Typing 'for' (without the quotes) and completing yields :
for ( ; ; ) { }
Typing 'for' (without the quotes) and completing yields :
switch () { case : default: }
PHP mode also have a system of language keywords completion. Type the first letters of a keyword and Alpha will complete. If there are several choices, you'll be prompted to choose one of them. For instance, type 'sh' (without the quotes) and hit the completion key to get 'shuffle'.
It you type imaget and hit the completion key, a list will be displayed with the possible choices which are in this case : imagettfbbox, imagettftext, imagetypes.
All the functions defined in the document with the following scheme
function foo ($arg_1, $arg_2, ..., $arg_n) { Instructions here... }
can be marked and made accessible via the "M" popup menu in the top-right corner of the document's window.
A few preferences can be set in the PHP Mode Preferences which you access from the "Config -- Mode Prefs -- Preferences..." menu item. Among other choices you can set :
Please e-mail any problem or bug you encounter :
Copyright Bernard Desgraupes, 2001, 2002 All rights reserved. This software is free software distributed under the terms of the new BSD license : Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the regents or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.