When you check-in to SVN with
svn ci, the default editor opens to allow you to enter your commit message. My default editor was Emacs. I don’t use Emacs for anything else, and I found entering a simple message a tad frustrating as Emacs commands/shortcuts are different to what I use with Vim.
Continue reading “Change SVN editor to Vim or TextWrangler” →
I have written a simple tool to tidy assignments. It basically takes a group of assignments and uses spaces to make the code more readable.
This tool will help code meet the indentation rules in the WordPress coding standards.
Continue reading “Tidy assignments in Coda and TextWrangler” →
If you are working in a collaborative environment, coding standards are important. When you are reading through code that you haven’t written, it helps if it follows a standard.
As I work with Automattic, the keepers of WordPress.com, I get the opportunity to work on the WordPress Platform. WordPress have their own standards that are sensible without being pedantic and are similar to the PEAR standard. The emphasis of the standard (in my opinion), is to present your code so collaboration is as easy as possible. It would prefer if you wrote code that is easier to read and understand, even if it is a little longer, than some compressed, ubersmart block of code that only you can follow.
Continue reading “Tidy and format your PHP and meet WordPress standards on Coda and TextWrangler” →
A few quick TextWrangler tips.
I never knew until recently that you can compare files in TextWrangler… and its easy.
Simply highlight the 2 files you want to compare in the Documents drawer, right click on them and select the option ‘Compare Selected Documents‘.
Now the 2 files will open into 2 windows with a review of the differences below them. You can then apply the differences in either direction.
Another tip is adding keyboard shortcuts to TextWrangler’s menu options.
Continue reading “Textwrangler Tips – Compare files, keyboard shortcuts” →
My text editor of choice on the Mac is TextWrangler. It’s lightweight and it has pretty much all you need from a text editor. In particular, I like that I can SFTP into my development server.
One issue that bugged me lately was when I opened an unindented, unformatted XML file. Basically, it looked a mess and there was no way to tidy the file up so that I could read it easily.
However, I found a simple way to do this today… Continue reading “Format XML with TextWrangler” →