Here's what you can do:
- Paste content from client.
- Select, hit AltQ to wrap. You'll now have two cursors, one at the end of each paragraph.
- Select
Selection -> Expand Selection to Paragraph
(I'll show you how to make a shortcut later). Both paragraphs are now selected, each as a selection region. - Bring up Emmet with CtrlShiftG and enter
p
(notp*
) - Hit Enter and you should have two wrapped paragraphs surrounded by
<p></p>
tags:
<p>Our swimming lessons run on a perpetual monthly enrollment system, making
year-round lessons affordable and convenient. Our online registration system
allows you to sign up at your convenience and monitor your account details
easily.</p>
<p>Our highly trained swim instructors teach our unique, proven curriculum in
stages, encouraging swimmers to master the fundamentals of every important
swimming skill. We continuously encourage progression and advancement as each
swimmer becomes more confident in the water. Our program blends important
water safety skills, buoyancy principles and correct stroke technique.</p>
To create a keyboard shortcut for Expand Selection to Paragraph
, go to Preferences -> Key Bindings - User
and add the following:
{ "keys": ["ctrl+alt+shift+p"], "command": "expand_selection_to_paragraph" }
If the file is empty, wrap the line above in square brackets []
:
[
{ "keys": ["ctrl+alt+shift+p"], "command": "expand_selection_to_paragraph" }
]
Save the file, and you should now be able to use CtrlAltShiftP for step 3 above. Feel free to change the key combination if you wish, but be aware that it may conflict with other built-in or plugin combos.
Note: I tested all this on Sublime Text 3, but it should work the same in ST2.