Using Texter to speed up web design/development

by Richard Bradshaw

Lifehacker’s Texter let’s you define short macros that allow you type a little, and get a lot back. I’ve not used this before, but am constantly finding myself typing the same bits over and over and over, so this is a very neat and helpful little tool.

Basically, you just define a command, then specify what that should expand to. The command %| inserts the cursor in that location after the replacement. A few macros that I’ve actually found myself using are:

Hotstring Replacement
$g $_GET['%|']
$p $_POST['$|']
<> <?= %| ?>
£ &pound;
l” &ldquo;
r” &rdquo;
msre mysql_real_escape_string(%|)

All nice simple things that make a big difference through the day, particularly <> and the Get and Post ones!

Any more useful ideas for this tool?

Related Posts