Notepad++

Discussion in 'other software & services' started by Howard Kaikow, Jan 21, 2008.

Thread Status:
Not open for further replies.
  1. Howard Kaikow

    Howard Kaikow Registered Member

    Joined:
    Apr 10, 2005
    Posts:
    2,802
    Is there a way to disable the recent files list?

    I am using version 4.7.5 in Windows.

    See Notepad++.
     
  2. Rmus

    Rmus Exploit Analyst

    Joined:
    Mar 16, 2005
    Posts:
    3,943
    Location:
    California
    Hello, Howard,

    With notepad++.exe closed,

    1) open the config.xml file in a text editor

    2) scroll down to

    <!-- The History of opened files list -->
    <History nbMaxFile="15" />

    and change "15" to "0"

    3) close and save changes.

    ----
    rich
     
  3. Howard Kaikow

    Howard Kaikow Registered Member

    Joined:
    Apr 10, 2005
    Posts:
    2,802
    Thanx, but the recent fies list still persists.

    I changed the 15 to 0 in both of:

    config.model.xml in the directory i which Notepad++ is installed.and

    config.xml in Documents and Settings\Howard Kaikow\Application Data\Notepad++.


    Where is this config stuff documented?
     
  4. Rmus

    Rmus Exploit Analyst

    Joined:
    Mar 16, 2005
    Posts:
    3,943
    Location:
    California
    Did you have Notepad++ closed when you edited the config.xml file? If not, the changes won't stick. I tried again, and it works here.

    The other config file is not used, as far as I can tell.


    ----
    rich
     
  5. Howard Kaikow

    Howard Kaikow Registered Member

    Joined:
    Apr 10, 2005
    Posts:
    2,802
    I copied the file to another name, foo,whatever
    Edited foo.whatever with Notepad++.
    Renamed the original as config.xml-keep
    REnamed foo.whatever config.xml.

    Here's what I have in config.xml

    Code:
    <?xml version="1.0" encoding="Windows-1252" ?>
    <NotepadPlus>
        <GUIConfigs>
            <!-- 3 status : "large", "small" or "hide"-->
            <GUIConfig name="ToolBar">standard</GUIConfig>
            <!-- 2 status : "show" or "hide"-->
            <GUIConfig name="StatusBar">show</GUIConfig>
            <!-- For all attributs, 2 status : "yes" or "no"-->
            <GUIConfig name="TabBar" dragAndDrop="yes" drawTopBar="yes" drawInactiveTab="yes" reduce="yes" closeButton="no" doubleClick2Close="no" />
            <!-- 2 positions : "horizontal" or "vertical"-->
            <GUIConfig name="ScintillaViewsSplitter">vertical</GUIConfig>
            <!-- For the attribut of position, 2 status : docked or undocked ; 2 status : "show" or "hide" -->
            <GUIConfig name="UserDefineDlg" position="undocked">hide</GUIConfig>
            <GUIConfig name="TabSetting" size="4" replaceBySpace="no" />
            <!--App position-->
            <GUIConfig name="AppPosition" x="195" y="104" width="1033" height="834" isMaximized="yes" />
            <!-- For the primary scintilla view,
                 2 status for Attribut lineNumberMargin, bookMarkMargin, indentGuideLine and currentLineHilitingShow: "show" or "hide"
                 4 status for Attribut folderMarkStyle : "simple", "arrow", "circle" and "box"  -->
            <GUIConfig name="ScintillaPrimaryView" lineNumberMargin="show" bookMarkMargin="show" folderMarkStyle="box" indentGuideLine="show" currentLineHilitingShow="show" Wrap="no" edge="no" edgeNbColumn="100" wrapSymbolShow="hide" zoom="0" whiteSpaceShow="hide" eolShow="show" />
            <!-- For the secodary scintilla view,
                 2 status for Attribut lineNumberMargin, bookMarkMargin, indentGuideLine and currentLineHilitingShow: "show" or "hide"
                 4 status for Attribut folderMarkStyle : "simple", "arrow", "circle" and "box" -->
            <GUIConfig name="ScintillaSecondaryView" lineNumberMargin="show" bookMarkMargin="show" folderMarkStyle="box" indentGuideLine="show" currentLineHilitingShow="show" Wrap="yes" edge="no" edgeNbColumn="80" wrapSymbolShow="hide" zoom="0" whiteSpaceShow="hide" eolShow="hide" />
            <GUIConfig name="Auto-detection">yes</GUIConfig>
            <GUIConfig name="CheckHistoryFiles">no</GUIConfig>
            <GUIConfig name="TrayIcon">no</GUIConfig>
            <GUIConfig name="RememberLastSession">yes</GUIConfig>
            <!--
    			New Document default settings :
    				format = 0/1/2 -> win/unix/mac
    				encoding = 0/1/2/3/4/5 -> ANSI/UCS2Big/UCS2small/UTF8/UTF8-BOM
    				defaultLang = 0/1/2/..
    
    			Note 1 : UTF8-BOM -> UTF8 without BOM
    			Note 2 : for defaultLang :
    					0 -> L_TXT
    					1 -> L_PHP
    					... (see source file)
    		-->
            <GUIConfig name="NewDocDefaultSettings" format="0" encoding="0" lang="0" />
            <GUIConfig name="langsExcluded" gr0="0" gr1="0" gr2="0" gr3="0" gr4="0" gr5="0" gr6="0" gr7="0" />
            <!--
    		printOption is print colour setting, the following values are possible :
    			0 : WYSIWYG
    			1 : Invert colour
    			2 : B & W
    			3 : WYSIWYG but without background colour
    		-->
            <GUIConfig name="Print" lineNumber="no" printOption="0" headerLeft="$(FULL_CURRENT_PATH)" headerMiddle="" headerRight="$(LONG_DATE) $(TIME)" headerFontName="IBMPC" headerFontStyle="1" headerFontSize="8" footerLeft="" footerMiddle="-$(CURRENT_PRINTING_PAGE)-" footerRight="" footerFontName="" footerFontStyle="0" footerFontSize="9" margeLeft="0" margeTop="0" margeRight="0" margeBottom="0" />
            <!--
                                Backup Setting :
                                    0 : non backup
                                    1 : simple backup
                                    2 : verbose backup
                          -->
            <GUIConfig name="Backup" action="0" useCustumDir="no" dir="" />
            <GUIConfig name="TaskList">yes</GUIConfig>
            <GUIConfig name="SaveOpenFileInSameDir">no</GUIConfig>
            <!--
    			value 0 for the folloing parameters means invisible :
    			leftWidth, topHight, rightWidth, bottomHight
    			
    					position value for the PluginDlg:
    						
    						0 : left
    						 1 : right
    						2 : top
    						3 : bottom
    						>= 4 : undocked -> FloatingWindow id
    			-->
            <GUIConfig name="noUpdate">no</GUIConfig>
            <GUIConfig name="MaitainIndent">yes</GUIConfig>
            <GUIConfig name="MRU">yes</GUIConfig>
            <GUIConfig name="URL">0</GUIConfig>
            <GUIConfig name="globalOverride" fg="no" bg="no" font="no" fontSize="no" bold="no" italic="no" underline="no" />
            <GUIConfig name="auto-completion" autoCAction="0" />
            <GUIConfig name="sessionExt"></GUIConfig>
            <GUIConfig name="DockingManager" leftWidth="200" rightWidth="200" topHeight="200" bottomHeight="200">
                <ActiveTabs cont="0" activeTab="-1" />
                <ActiveTabs cont="1" activeTab="-1" />
                <ActiveTabs cont="2" activeTab="-1" />
                <ActiveTabs cont="3" activeTab="-1" />
            </GUIConfig>
        </GUIConfigs>
        <!-- The History of opened files list -->
        <History nbMaxFile="0" />
    </NotepadPlus>
     
  6. Rmus

    Rmus Exploit Analyst

    Joined:
    Mar 16, 2005
    Posts:
    3,943
    Location:
    California
    When I set the max number=15 and open a file, the filename is listed in the config file and also on the file menu:

    <!-- The History of opened files list -->
    <History nbMaxFile="15">
    <File filename="C:\note\license.txt" />

    notepad.gif
    ____________________________________________________________________

    If I set the max number=0, no file name appears in either location.

    When you set =0 what shows at Settings|Preferences|Misc for "History File Setting"?


    ----
    rich
     
  7. wideglide36

    wideglide36 Registered Member

    Joined:
    Oct 3, 2004
    Posts:
    207
    Location:
    Central PA
    Howard,

    In my Notepad ++ folder , C: - Program files - Notepad++,
    there is a config.model.xml and also a config.xml file.

    I did as Rmus instructed and it worked fine for me.

    Look around in that notepad ++ folder and you should see both of those files.

    John
     
  8. Howard Kaikow

    Howard Kaikow Registered Member

    Joined:
    Apr 10, 2005
    Posts:
    2,802
    I believe that I found the problem.

    Setting the maximum history to 0 does work, but, and it's a big butt, there's another setting in Settings!Preferences!Misc that affects things.

    It seems that "Remember the current session for next launch" also needs to be unchecked.
     
  9. Howard Kaikow

    Howard Kaikow Registered Member

    Joined:
    Apr 10, 2005
    Posts:
    2,802
    On my system:

    config.model.xml is in the directory i which Notepad++ is installed.and

    config.xml is in Documents and Settings\Howard Kaikow\Application Data\Notepad++.
     
Thread Status:
Not open for further replies.