Copy Folding Group

1

Id like to copy the contents from HTML for a certain html-element and all the inner elements via notepad++.

I know ctrl+B in Notepad++ from here: Notepad++: Select/Copy Collapsed Folding Group but it only works for curly braces and not for html tags...

E.g. code:

<div class="portlet-title">
    <div class="caption">
        <i class="fa fa-reorder"></i>Form Sample
    </div>
    <div class="tools">
        <a href="javascript:;" class="collapse">
        </a>
        <a href="#portlet-config" data-toggle="modal" class="config">
        </a>
        <a href="javascript:;" class="reload">
        </a>
        <a href="javascript:;" class="remove">
        </a>
    </div>
</div>

I want to somehow "select" the code <div class="tools"> and via shorcut copy this element with all its subnodes, in this case:

    <div class="tools">
        <a href="javascript:;" class="collapse">
        </a>
        <a href="#portlet-config" data-toggle="modal" class="config">
        </a>
        <a href="javascript:;" class="reload">
        </a>
        <a href="javascript:;" class="remove">
        </a>
    </div>

tim

Posted 2014-04-06T18:38:20.460

Reputation: 302

1thanks for publishing the solution! maybe you can convert it into an answer and accept it afterwards – miroxlav – 2014-05-04T00:06:41.213

Answers

0

Use the HTML Tag Plugin in notepad++ via Shift+Ctrl+T to select a HTML Tag until its closing tag, see

Notepad++ Jump between opening and closing html tags

tim

Posted 2014-04-06T18:38:20.460

Reputation: 302