word wrapp settings are not saved



  • I use the portable version of npp 7.8.0.0. After starting npp the word wrap is disabled. When i enable word wrap and restart npp word wrap is disabled again. Is there any solution to save word wrap mode setting as always enabled?



  • I just tried with Notepad++ v7.8

    Notepad++ v7.8   (64-bit)
    Build time : Oct  7 2019 - 00:55:55
    Path : C:\usr\local\apps\npp-other\npp.7.8.bin.x64\notepad++.exe
    Admin mode : OFF
    Local Conf mode : ON
    OS Name : Windows 10 Enterprise (64-bit) 
    OS Version : 1903
    OS Build : 18362.418
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll 
    

    When I exit with wrap enabled, config.xml contains the line

            <GUIConfig name="ScintillaPrimaryView" lineNumberMargin="show" bookMarkMargin="show" indentGuideLine="show" folderMarkStyle="box" lineWrapMethod="aligned" currentLineHilitingShow="show" scrollBeyondLastLine="no" disableAdvancedScrolling="no" wrapSymbolShow="hide" Wrap="yes" borderEdge="yes" edge="no" edgeNbColumn="80" zoom="0" zoom2="0" whiteSpaceShow="hide" eolShow="hide" borderWidth="2" smoothFont="no" />
    

    When I exit with wrap disabled, config.xml contains the line:

            <GUIConfig name="ScintillaPrimaryView" lineNumberMargin="show" bookMarkMargin="show" indentGuideLine="show" folderMarkStyle="box" lineWrapMethod="aligned" currentLineHilitingShow="show" scrollBeyondLastLine="no" disableAdvancedScrolling="no" wrapSymbolShow="hide" Wrap="no" borderEdge="yes" edge="no" edgeNbColumn="80" zoom="0" zoom2="0" whiteSpaceShow="hide" eolShow="hide" borderWidth="2" smoothFont="no" />
    

    Note it changes from Wrap="yes" to Wrap="no".

    If you want a portable version to save settings between runs, you have to have write permission to the portable folder, including config.xml (and other such files) in that folder.



  • Thank you very much!

    The folder was write protected, after i set the permission to folder and files it still doesnt save the setting.

    The config.xml was hidden, so i set it to visible and changed the setting Wrap=“no” to Wrap=“yes”. After restart npp the word wrap was enabled.
    But then, if i disabled this setting with the button and restart npp the setting was enabled again (vice versa problem).

    Then i started npp one time with right click/admin rights and i noticed a change at the date from the config.xml file. From now on i can change the settings and everything worked now.

    Problem solved with your help.
    Thanks again :)


Log in to reply