Menu

Custom code folding

Hikari
2009-07-23
2012-11-13
  • Hikari

    Hikari - 2009-07-23

    Hello guys.

    I searched for this info and wasn't able to find anything about it.

    What I wanted is some way to define custom folding areas, as is done on Eclipse or NetBeans.

    I'd like to create blocks with many function inside, and instead of collapsing each function separtely, be able to collapse the whole block together. It makes easier to browse big source files.

    Any idea if it is possible?

     
    • cchris

      cchris - 2009-07-25

      Obviously you are using built-in languages which would be hard to emulete using an UDL (user defined language). The solution I have only works for UDLs. Here is a link: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Languages

      For builtin languages, you can add keywords to some classes, but cannot make them in to folding points.

      I thnk you should post your request on IdeaTorrent, hopefully someone implements it and the patch makes it to release code.

      CChris

       
    • cchris

      cchris - 2009-07-24

      It currently is not.

      Wait. If you are using a user define language, you can define a special keyword like @@@@ and ####, and use these to mark custom folding points. Otherwise, this is not supported - but a plugin sure could do it.

      CChris

       
      • Hikari

        Hikari - 2009-07-24

        Hello Chris tnx for the reply.

        I develop using Java, PHP and JavaScript languages, can that be done with them?

        Can you link me some tutorial teaching how to define keywords and mark custom folding points? :D

         
MongoDB Logo MongoDB