Convert multiple lines to paragraphs, divs, etc.

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
ebarstad
Posts: 19
Joined: Sun Mar 05, 2006 9:19 pm

Convert multiple lines to paragraphs, divs, etc.

Post by ebarstad »

Hi,

[sorry, just updated the title so it made more sense... hopefully]

I couldn't find this anywhere on the forum or in the features of WeBuilder 2005 (I apologize if I missed it or if it's part of 2006) so I'd like to suggest it here:

It would be great to have the option of selecting lines of code and converting them into paragraphs, divs, spans, etc through the Selection context menu. For example, if I highlight the following:

Code: Select all

This is paragraph 1.
This is paragraph 2.
This is paragraph 3.
I would like to be able to quickly convert that into:

Code: Select all

<p>This is paragraph 1.</p>
<p>This is paragraph 2.</p>
<p>This is paragraph 3.</p>
Thanks,
Eric
Vandulus
Posts: 30
Joined: Tue Dec 06, 2005 4:48 pm
Location: Columbus, Ohio
Contact:

Post by Vandulus »

I second the need for adding <div> and <span> tags!
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

that would be cool.

It's pretty quick if you have a snippet assigned to a shortcut. I do this sort of monkey crap all day.

triple click to select the line
wrap it with a snippet via shortcut

only 'problem' is that selecting the line also selects the carriage return so your closing tag ends up on a new line.

Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yeah and question arises, whether it is good to select the return.

It is good because it is standard behavior, also it is more convenient when you drag lines or delete them, but on the other hand it is not good in this case when you need to wrap something around line.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Maybe implement one of your shift adjusters? Like triple click selects the return and shift+triple click doesnt? or something. I'd use it all the time, that's for sure.


Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Worth thinking about this... :idea:
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply