Menu

[Request] Fold Margin disableable?

NG
2008-04-04
2012-11-13
  • NG

    NG - 2008-04-04

    I have seen the same question severals time: How to disable the fold margin. Since there has never been any answer I guess it's impossible.

    So I make my request, for the possibility to hide the fold margin. Why? Because sometimes I when debugging I want to see immediately the number next to the first word of the line that correspond. It would be much more comfortable.

    This great software let us change the color of line number and fold margin. But that's very annoying to change styler.xml juste to debug.

    Thank you very much

     
    • cchris

      cchris - 2009-08-24

      Follow-up:
      The reason why the fold margin is reset on every tab change is in Notepad++ territory, specifially in the call to isNeededFoldMarge() inside ScintillaEditView::defineDocType()

      So yes, one could set up a general preference to override the language based display of the fold margin. There is no way to do so permanently at this moment.

      CChris

       
    • Fool4UAnyway

      Fool4UAnyway - 2008-04-04

      This has been asked recently.

      "Disable Fold Margin ?" (Help forum)
      http://sourceforge.net/forum/forum.php?thread_id=1934814&forum_id=331754

      It is still on the first page of the help forum, currently the 24th thread, second from the bottom of the list.

      http://sourceforge.net/forum/forum.php?forum_id=331754

       
      • NG

        NG - 2008-04-04

        Like I said, I did see the numerous threads without solution. In this thread the solution that he gives is to blow out the language definition in langs.xml This way I won't have syntaxe coloration anymore. This is not a solution.

        I think there is are no solution. I just want to know if this feature will be implemented in the future or not.

         
        • Don HO

          Don HO - 2008-04-04

          I'll consider it, but I promise you nothing.

          Don

           
          • NG

            NG - 2008-04-05

            Thanks a lot donho, do what you can.

             
            • Sam Hishmeh

              Sam Hishmeh - 2009-08-20

              I would be happy if it were disableable.  It makes the screen busy and I rarely use it. 

               
    • cchris

      cchris - 2009-08-20
       
    • Sam Hishmeh

      Sam Hishmeh - 2009-08-20

      Not sure exactly what this is supposed to do.  It looks like I have to run a macro everytime I open a file to rid myself of the margin.  That would be a quite a bit annoying.

      Nevertheless, I tried the directions.  I found shortcuts.xml in Program Files/NPP... and in %AppData%/NPP... I added that section of code.  I restarted NPP.  I go to Macro/Run macro multiple times, and the only one listed is the other Macro, Trim Trailing Space. 

      I re-open the shortcuts.xml files, and the one in %APPDATA% has wiped away my changes.

      If I'm correct, and you have to run a macro for each file, then don't worry with helping me with the problem; I wouldn't take the effort for every single file I open.

       
    • cchris

      cchris - 2009-08-21

      I'm afraid Scintilla considers it unlikely that you don't want folding, because it was one of the reasons for it being developed.

      shortcuts.xml is a Notepad++ configuration file, so special steps have to be taken to edit it, as per http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Configuration_Files . Simplest is to use a different editor to edit shortcuts.xml, config.xml and friends. That way, your changes will stay, and you'll have to play the macro often.

      I haven't found where in the source code the fold margin is being reset to its default width. I'm not an experienced C++ programmer, so if anyone can pprovide a... pointer, that may help.

      CChris

       
MongoDB Logo MongoDB