phpmode is a mode for jed that helps in editing PHP files. It does keyword highlighting and proper indenting, plus a slew of other functionality.
Be the first to post a text review of phpmode. Rate and review a project by clicking thumbs up or thumbs down in the right column.
o Made it so that when outside a phpblock phpmode doesnt insert a tab.
o Reworked the way indent recognizes more than one // or # comment on a line. o Updated the function keywords for highlighting according to php-4.2.1
o Added new functions as of php-4.0.4. is_null get_defined_functions get_defined_vars call_user_func_array constant ImageCreateFromString array_sum curl_getinfo o These functions got renamed in the php-4.0.4 release. shm_attach => shmop_attach shm_detach => shmop_detach shm_get_var => shmop_get_var shm_put_var => shmop_put_var shm_remove => shmop_remove shm_remove_var => shmop_remove_var o Removed an extra php_paragraph_sep function that had somehow crept in. o Ported C_Switch_Offset over from cmode to this mode and renamed it to PHP_Switch_Offset, it controls the offset of code inside a switch statement. o Made php_mark_matching more generic, now it matches whatever you're standing on. o Added back DFA syntax caching to on by default. o Added separators to the menu to increase readability.
o Fixed the comment/uncomment region code, it no longer moves the commented region to the beginning of the line, it now also doesn't comments out a extra line at the end of the marked region.
o Added html style commenting to be recognized as a comment, only works in DFA. o Fixed mark_function, now it no longer marks extra lines above and under the actual function, something that could make subsequent comment_region comment some extra lines out. o Fixed some problem with # style comments, it should now works as // o Added ASP style tags, ex. '<% %>',to be recognized as php delimiters. o Fixed the regexp in DFA so one-liners like '<% echo ("As of PHP 3.0.4 you may optionally use ASP-style tags"); %>' now looks nicer. o Updated the docs, added a section on DFA syntax. o Added missing constants. __FILE__ __LINE__ o Added missing functions. include_once require_once o Fixed the folding, it now uses //{{{ and ///}}} as start and end fold markers.
o Added new functions as of the php-4.0.3 release. EscapeShellArg is_uploaded_file move_uploaded_file pathinfo pg_put_line pg_end_copy ftp_exec session_cache_limiter curl_error curl_errno mysql_escape_string o Added missing folding information o Updated DFA highlighting, seems to work fine. o Went over the docs for accuracy. o Reworked the php_indent_buffer, should work better now o Once again redid the php_top_of_function, it now has a more strict syntax check for finding a function top, at the moment it cannot find a function that is broken up on multiple lines.
o Fixed some folding information. o Added my new email address. o Added missing definekey for php_format_paragraph o Changed all "PHP" to use $1 instead o Restructured the order of key-bindings and menu order, mostly cosmetic. o Added php_blink_matching, if you put the cursor on a brace it marks the region between that and the matching one, nice visual, only to find out about goto_match, try Ctrl-\, oh well i coded it and now it stays :) o Fixed/Changed the behavior of php_top_of_function, now it correctly reports that you're not in a function if you're missing a top brace. o Changed the error message if php_top_of_function can't find the top brace of the function to say that it can't find the top brace of the function. o Added a function to insert a literal TAB, default bound to Ctrl-C Ctrl-I Now, don't ask what it is for if you don't know. o Changed the behavior of indenting outside a phpblock (i.e. <? ?>), now It just insert a TAB character, nothing fancy at all. o Changed the heuristic of finding if you're inside a phpblock. o Updated the 'things that are a non-issue' list o Replaced the current php_indent_buffer code with the one from krconv.sl, actually i would have preferred to just autoload() it, but since this mode isn't a part of the standard shipment with jed i can't rely on the fact that krconv.sl will exists for someone, so i duplicate its functionality here for the present being and if this mode gets included into the mainstream package i suggest this gets remedied. o Improved the heuristic on php_top_of_function, it now correctly doesn't find functions that are in a comment, since its valid syntax in php to break up the function line on many lines, I've dumbed down the heuristic of finding the top of the function, it now only looks for the word function and checks if it is not in a comment, this should be OK.
o Updated the docs on how to install and made sure they worked. o Verified that all the the user variables works as expected. o Added missing keywords and functions: array_rand imagegammacorrect swf_definepoly swf_ortho array_merge_recursive pg_trace pg_untrace set_error_handler create_function pg_loimport pg_loexport fflush str_pad imagewbmp imagecreatefromxbm array_unique array_intersect array_diff restore_error_handler spliti ImageCreateFromWBMP ImageColorClosestHWB ImageCopyMerge ImagePaletteCopy ImageTypes wordwrap ldap_compare strncasecmp ob_get_length php_uname o Added all functions to the menu o Added back a provisional format_paragraph, but it is ripped right out of c_mode and i don't honestly know what to do with it, any suggestions about what format_paragraph should do for phpmode is more than welcome. o Fixed the wrong indenting within braces. o Spell-checked my docs *DOOOH* o Removed some debugging lines.
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?