Thanks for your replies. I stated the question unclearly. Ctrl + 1 converts to H1 when you put your cursor anywhere in the string; you do not first have to select all or portions of the string. This works differently than Ctrl + b which converts any selected portion of a string to bold. I would like to be able to put my cursor somewhere in a string, then convert the tags surrounding the string into tags of my choosing.
For example, if I put the cursor anywhere in 'Some string.' I can change <p> into <h1>.
<p>Some string.</p> into <h1>Some string.</h1>
In order to make some or all of 'Some string.' bold I must first select that portion before using Ctrl + b. This does not change any other tags.
<p>Some string.</p> into <p>Some <b>string</b>.</p>
I was hoping for a way to use, say, Ctrl + 4, to convert the tags surrounding a string when my cursor is anywhere within that string (without selecting text) into another pair of tags.
<p>Some string.</p> into <Tag>Some string.</Tag>
Best regards, Pop
|