Notepad++ - Highlight text and insert html <tag></tag> around it
Solution 1:
I've found a plugin that does that, Webedit and it's available in Notepad++'s Plugin Manager (Plugins > Plugin Manager > Show Plugin Manager).
Solution 2:
There's three ways to do this
Using the fingertext plugin
- install "FingerText" plugin. (tested 0.5.60 version).
- download finger text snippet.
- select text, press alt+/.
- for example type b (you can create your own "snippet
tag
" later).
Notes: some version notepad++ must edit:$[![]!]
to$[![(key)SELECTION]!]
- press tab or enter
-
You can install any of this:
- emmet coding
- zencoding
select text, found and click menu "wrap with abbreviation".
- type your
tag
- press
Ok
Using multiple edit steps:
-
Preparation step
- click "Setting" > "Preferences" menu.
- click Editing tab.
- check "Enable (Ctrl+Mouse click/selection)" in "Multi Editing Settings" groupbox
-
Execute this step
-
Click before text, Ctrl+Click after text, like this:
` click here ` text Ctrl+` click here `
-
Typing whatever
<tag>
, will be around like this:<tag>
text<tag>
Press Ctrl+← twice, and type /
-
Solution 3:
Solution found at https://stackoverflow.com/questions/34724634/notepad-shortcut-to-add-brackets-around-highlighted-text
1) Mark text
2) Goto Macro -> start recording
3) Cut highlighted text (CTRL+C)
4) Type: "{" then do CTRL-V then Type "}"
5) goto Macro -> Stop Macro
6) Save Macro as a shortcut