ctrl + 1 question
Ctrl + b forces you to select text first and this makes sense because sometimes you want to make bold only a word, not just the entire string between two <tag> pairs.
When putting the cursor anywhere in text enclosed by any tag pair you can convert that tag pair to <h1> and </h1>. It is not necessary to select the text between the tags first. Is there any snippet which can do the same thing? That is, without first selecting and highlighting the text?
<p>This is a sentence.</p>
converts to
<h1>This is a sentence.</h1>
The cursor can be anywhere inside of 'This is a sentence.' The entirety of the text does not have to be highlighted for the <p> to <h1> conversion when you hit Ctrl +1.
Best regards, Pop
|