PDA

View Full Version : Two tag-marking suggestions


epement
10-31-2002, 02:44 PM
First suggestion: Assume that there is a marked block containing HTML tags, and that the currently highlighted block looks like this:


<p>This is a sample marked <i>block,</i>, which has
embedded <span style="something">tags</span> in
it, along with <a href="#x">other</a> tags.</p>


(1) Left-click on an H1 button would wrap the entire marked block
in an <H1>...</H1> pair, leaving all the internal tags alone.
The interior would look like:


<h1><p>This is a sample marked <i>block,</i>, which has
embedded <span style="something">tags</span> in
it, along with <a href="#x">other</a> tags.</p></h1>


(2) Control-click on an H1 button would replace the two end-most tags with H1, while leaving all the other internal tags alone. The interior would look like:


<h1>This is a sample marked <i>block,</i>, which has
embedded <span style="something">tags</span> in
it, along with <a href="#x">other</a> tags.</h1>


(3) Shift-click on an H1 button would remove all the internal tags with all of their attributes, except for <img...>, <a...>, <embed...>, <hr>, <table>, <form> and elements of <table> and <forms>. This means that anchors, images, and other non-markup text would be left intact, but the other formatting commands such as <font>, <span>, <p>, <div>, <Hn>, <i>, <b>, <em>, <strong>, and so forth would be removed, while what's left would be wrapped in the <h1> tags.

The interior would look like:


<h1>This is a sample marked block, which has embedded tags
in it, along with <a href="#x">other</a> tags.</h1>


As someone who has had to clean up Microsoft Word-to-HTML files, I can say that the need for a function like this is very real. I wish that this could be implemented in 1st Page.

Second suggestion: It is also a long-term wish that double-clicking or triple-clicking inside any <html tag="with any number of" style="attributes"> would mark the entire tag, from bracket to bracket, even if the brackets span more than one line.

This would allow the tag to be quickly moved (drag-and-drop) or deleted with great ease. Thanks for listening.

Adelas
11-16-2007, 12:20 PM
Wow, those are both great idea! I would certainly use both of those features if they were implemented.