View Single Post
Old 11-11-2022, 08:56 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 330
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
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
rjwse@aol.com is offline   Reply With Quote