NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Add more flexible wrapping features
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
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.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Feature request


Joined: 18 Oct 2007
Posts: 18
Reply with quote
A command to reformat text with a hard wrap, especially in .txt files would be a critical feature for me.

I know PhpED is a programming editor, but every program I have has a readme.txt file. Each line of every readme.txt is hard-wrapped at column 60 for readability and formatting.

When I re-write sections, the wrap is all messed up and it's a lot of work to straighten it out. What I do now, is paste the code into UltraEdit, highlight it, press Ctrl-T, and then copy it back to PhpED. It's a pain, but I edit the code files in PhpED and often rewrite readme.txt as I go. I hate to have to go to another editor to finish up.

I had paragraph re-format with a hard return added after each line many years ago in some pretty primitive editors (e.g. WordStar on the Apple II) and the traditional command for it was -- you guessed it -- Ctrl-T.

I absolutely love PhpED but it sure would be nice to have this feature.

Bob
View user's profileFind all posts by BobRaySend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
primitive editors

feel free to write primitive php script that will do this for you. See this link on how to use php scripts for editing in phped:
howto-use-a-php-script-for-my-editing-t753.html

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2007
Posts: 18
Reply with quote
dmitri wrote:
Quote:
primitive editors

feel free to write primitive php script that will do this for you. See this link on how to use php scripts for editing in phped:
howto-use-a-php-script-for-my-editing-t753.html


Will do ... Thanks!
Bob
View user's profileFind all posts by BobRaySend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
great!

would be even greater if you share your script with other php developers Smile
we created this forum section for such posts:
phped-integration-scripts-f18.html

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2007
Posts: 18
Reply with quote
dmitri wrote:
great!

would be even greater if you share your script with other php developers Smile
we created this forum section for such posts:
phped-integration-scripts-f18.html


I'll certainly do that if I create anything, although it looks like there may be a script there already to do what I want.

Is it possible in PhpEd to create a button that directly launches a script? I know I can put the script menu up there but it would be nice to have one button to launch a particular script.

Or, can a particular script be run from a keyboard shortcut?

Bob
View user's profileFind all posts by BobRaySend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
button -> no, you can't create button for it.
but shortcuts are available for any commands integrated that way. See settings for the command and you'll find shorcut input.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Oct 2007
Posts: 18
Reply with quote
dmitri wrote:
shortcuts are available for any commands integrated that way. See settings for the command and you'll find shorcut input.


It works! Man, I love this editor!! Very Happy
View user's profileFind all posts by BobRaySend private messageVisit poster's website
Add more flexible wrapping features
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic