Veteran
Joined: 26 Dec 2006 |
Posts: 253 |
Location: Phoenix, AZ |
|
 |
Posted: Tue Sep 25, 2007 12:34 pm |
|
 |
 |
 |
 |
Presently, PhpED offers these wrapping-related features:
- Globally toggle soft-wrap-to-window-width
- Tidy-powered wrapping via integration
I'd like to see this list grow. In order of increasing complexity (mostly):
1) Ability to run a command to hard-wrap a file, or just the selected text, at a particular character count. This feature would be word-smart, of course, so the limit would actually be a max-limit, just like the current soft-wrapping feature.
2) Number 1, but with some additional intelligence features. Specifically, a feature to adjust indentation of secondary lines relatively to the first line (outdent, match, or hanging), and a feature to fill/join paragraphs together using a double-break to signify the "real" paragraph end-markers.
3) Ability to adjust the soft-wrapping margin to something other than the window width. Save this setting per-file, and allow a default.
4) Ability to have soft-wrapping auto-indent relative to the first line of the paragraph (outdent, match, or hanging). Save this setting per-file, and allow a default.
5) Add hard-wrapping that behaves like soft-wrapping in number 4 so that the editor automatically inserts breaks as you type and reach the limit. This really only makes sense within a plain-text context, like in HTML. Save this setting per-file, and allow a default.
And if you can apply these features per-*language*, that would just be the bomb.
The point of all these features is to make it easier to do text editing in whatever way makes most sense to the context, our personal preferences, and any coding standards that apply. I know, I know, we're programmers, not copy editors, but as much as we may dislike it, it's hard to get away from doing any text editing, even if it's just integrating copy that someone else wrote into a page in a way that doesn't break the visual flow of the code we wrote.
|