Easy link pasting?



  • I’m editing HTML files directly and I do this all the time. I want to take some phrase and add the HTML code for a hyperlink.

    For example, I might have:

    IrfanView has this option when resizing a texture

    and I want:

    <a href=“http://www.irfanview.com/”>IrfanView</a> has this option when resizing a texture

    In my perfect world I would copy the URL http://www.irfanview.com/ using control+C, highlight the word IrfanView, then hit some magical key combination that would perform the formatting I show here. Is there a way to do this in Notepad++? It would save me a lot of “<a href” etc. typing, not to mention typos.

    Eric



  • Hello @Eric-Haines,

    this can be done by using the one of the snippets plugins or by using nppexec or python script plugin.
    From first point of view I would assume a snippet plugin would be the best solution as you can define
    multiple snippets which can add whatever text you define.

    Cheers
    Claudia



  • Hi Eric,

    I faced just the same problem / challenge. After some testing with various tools I finally ended up with TyperTask (http://www.vtaskstudio.com/support.php). I works pretty well and I am very flexible - it doesn’t belong to a specific application. Now I can use this kind of function where ever I type right now.
    I think even PortableApps.com published a version of it.
    Good luck,
    Ralf


Log in to reply