2

How can I configure Notepad++ to see last line of code fold block.

example:

<form id="myForm" action="login.asp">
    /*100 input tags*/
</form>

I would like to see the initial and final line to assure that the block is correct, final line too:

<form id="myForm" action="login.asp">
</form>

By default Notepad++ only show the initial line:

<form id="myForm" action="login.asp">
4
  • I'm afraid you can't do that, in Npp the folding allways hide the last line.
    – Toto
    Jan 29, 2018 at 11:13
  • I would be amazed if you can do this :( You may have more luck if you use regions but that may mean updating the HTML
    – Dave
    Jan 29, 2018 at 11:28
  • A pity that can not be seen. It would be very useful, at least for the distrustful ones with oneself like me. If I do not see the last line I did not trust that I did it right :-)
    – Jabi
    Feb 12, 2018 at 12:20
  • What I started doing to circumvent this is to add a comment line <!-- End of <\form> --> after closing tag. This way, when I fold the tag, I can know that it actually folded at the right location. Mar 29, 2019 at 15:32

1 Answer 1

0

Here is a workaround to this which works fairly well.

Add a comment line <!-- End of <\form> --> after closing tag. This way, when you fold the tag, you can know that it actually folded at the right location. Here is a gif for it. Hope it helps.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.