PHPDeveloper.orghttp://www.phpdeveloper.org
Up-to-the Minute PHP News, views and communityen-usTue, 03 Mar 2015 16:51:28 -060030http://www.phpdeveloper.org/news/13390http://www.phpdeveloper.org/news/13390
TextMate users working on CodeIgniter projects will be happy to see this new bundle they can add to their list full of handy shortcuts for the framework.

This is a complete CodeIgniter TextMate/E-Texteditor bundle. It includes shortcuts for every CodeIgniter helper function, and library included in CodeIgniter 1.7.2. Tab stops and default values are provided.

You can a href="https://sourceforge.net/projects/cibundle/">grab the bundle directly from its page on SourceForge. This preview image gives you an idea of some of the shortcuts included.

]]>Thu, 15 Oct 2009 07:57:21 -0500http://www.phpdeveloper.org/news/13094http://www.phpdeveloper.org/news/13094
In this new entry to his blog Raphael Stolt shows how to combine TextMate's snippets (handy bits that can be inserted/executed over and over) and Phing to run custom tasks.

As a reader of this blog you might have noticed that from time to time I like to utilize Phing's ability to write custom tasks. [...] This is actually a bad habit/practice I'm aware of and to improve my future endeavours in custom Phing task development, I bended TextMate's snippet feature to my needs.

He includes the snippet code example so you can copy and paste it over if you'd like to work it into your routine. This can be dropped directly into the Bundles editor and have a tab trigger applied to make using it even easier.

]]>Mon, 24 Aug 2009 08:17:27 -0500http://www.phpdeveloper.org/news/12047http://www.phpdeveloper.org/news/12047
Maggie Nelsonpoints out a cool way that you TextMate users out there can get better syntax highlighted code for your blog posts.

Craig's process is as simple as selecting the TextMate bundle and choosing "Create HTML from Document with Line Numbers". The resulting output takes a little tweaking in the HTML and CSS, but the end result is quite nice (and better than several of the syntax highlighting plugins out there).

]]>Mon, 02 Mar 2009 12:52:27 -0600http://www.phpdeveloper.org/news/11826http://www.phpdeveloper.org/news/11826
If you're a fan of the Textmate editor for the Mac platform, you might want to check out this new post from the cssgallery website. It shows how you can get your favorite editor to check your PHP syntax for you.

A nice "hidden" feature that Textmate has, is to check the syntax of the php files you are writing, and display a popup with the result. [...] Each time you save, a syntax check will be done, and a popup will show you the result

You'll need to edit the PHP bundle slightly to get things working, but that's as easy as going through the UI and changing a drop-down value to activate the check. You'll need to have a php binary where the editor can use it, but most OS X installs will have that in place anyway. Check out this image to see the end result.

]]>Tue, 27 Jan 2009 12:55:22 -0600http://www.phpdeveloper.org/news/9677http://www.phpdeveloper.org/news/9677
Raphael Stolt has posted a new entry to his blog that talks about combining two things that many developers out there already use - the Zend Framework and the TextMate editor. He shows hos to make some useful code snippets that can be customized to whatever you might need.

To reduce the typing effort for the most common tasks in creating a Zend Framework based application, which are creating action controllers including their hosted actions and creating new models for accessing the underlying database, I spent some minutes to figure out how to create and add these valuable snippets to the default PHP bundle.

The contents of the examples snippets are included - one to set up a controller, one to add an action to it and an third that will automatically set a table name property.

]]>Thu, 21 Feb 2008 09:39:00 -0600http://www.phpdeveloper.org/news/5640http://www.phpdeveloper.org/news/5640
On the KillerSoft blog today, there's a few comments from Clay Loveless about his trial of Textmate, specifically when dealing with phpDocumentor comment blocks.

I've been a BBEdit user for a decade, and despite my switch to Zend Studio last fall for the bulk of my PHP development, I still find myself going to plain text editors for little tweaks, or less formal "hack it out" efforts.

There are a few things that I've grown very accustomed to as a Zend Studio user over the past several months. One of those is typing "/**" in a PHP document and having a full phpDocumentor docblock appear magically, with the cursor insertion point set on the first line of the comment area.

Unfortunately, TextMate doesn't handle it quite that way, but he's found a similar way to accomplish it - using "doc_cp" followed by a TAB. It doesn't quite handle the preformatted blocks as well as Zend's software does, but that's nothing the scripting features of TextMate can't take care of - he shows you how.