In a blog I regulaly read, the author mentioned <an unamed IDE
> and one of its features.
Quote: |
The "snippets" editor allows you to define "snippets" of text that are activated either via a hot key or via a keyword followed by a tab. It comes with hundreds of pre-defined snippets, many for PHP. Not only can you define snippets of text, you can also use its tagging system to allow you to tab through the result to change data.
For example:
You type: "array" then hit tab. It adds "$arrayName = array( 'var', );" to the document with 'arrayName' highlighted. You type in your desired variable name, hit tab and it moves to "var", change that and hit tab and it moves to the comma, allowing you to delete it or to add more elements to the array.
|
This would be great in PHPEd, if it doesn't already have something similar. It would be a great timesaver and make the already amazing editor even better!
EDIT: Got rid of the IDE's name, as it is kind of a competitor (although it's Mac only software). Also one of the comments about was "I type com, hit tab, and type in my comment. The top and bottom dash lines will automatically expand to fit the text I type. It's cool stuff." which again would be great as part of a snippets editor.