notepad++ - Save a text a reuse it later -
notepad++ - Save a text a reuse it later -
is there way in notepad++ save text, copyright comment
<?xml version="1.0" encoding="utf-8"?> <!-- did write 1 day, it's work -->
and later (even after closing notepad++), insert in file ?
somehow, macro, but don't want start recording macro, (carefully) type text , save macro.
(may answered, don't see keywords use)
edited (exact scenario)
i have lot of xml files with:
<?xml version="1.0" encoding="utf-8"?> <localization xml:lang="en"> <!-- xml nodes --> </localization>
one file each language, 1 set of languages each project. in 1 of these file (en.xml
), i've wrote comment how these files work:
<!-- utilize loc: namespace each localization entry. nodes without "loc:" namespace should containers , should contain "loc:" nodes or other containers. @todo check every entry typing mismistakes @todo assign xsd -->
now, want "save" text in notepad++ (like macro, don't want start recording macro , retype text). then, later, open fr.xml
, , tell notepad++ paste saved text @ origin of file. then, re-create nodes fr.xml
, paste them somewhere, , mess ctrl+c ctrl+v inside/outside fr.xml
(usual stuff). now, re-create node fr.xml
(like <loc:foo/>
) , paste in de.xml
. , want still able "paste" saved text, aka comment <!-- utilize loc:...
, within de.xml
if did copy/paste before (so cannot ctrl+c comment because erase/be erased re-create of <loc:foo/>
).
currently, way have is:
start recording macro retype text don't want step: have verbose comments "record" stop recording save macro (with shortcut).retyping text (some much longer) while recording macro pain.
is there way create macro without retyping text? if not, there way "save" text , insert later in other files (without ctrl+c/ctrl+v
)?
fingertext answer.
what talking (save text "somewhere" in n++ , reuse later) called code snippets (here, it's intended texts , comments).
fingertext accessible @ https://github.com/erinata/fingertext or through notepad++ plugin manager.
this question duplicate of notepad++ code snippets manager
notepad++
Comments
Post a Comment