How to stop Notepad++ inserts parentheses and commas in new lines



  • Hy!

    How can I stop Notepad++ inserting parentheses and commas after press <ENTER> when editing a txt file?
    The new line looks like a definition of a parameter list of a function, instead of an “empty” line.

    Example:
    line 09 - Oouadf aodfuiaf ouiadfadf oui.
    line 10 - Abc efg abcc iiie ododdo.
    line 12 - qerad adf adf adsfdasfadf.

    After press <ENTER> at the end of line 10:

    line 09 - Oouadf aodfuiaf ouiadfadf oui.
    line 10 - Abc efg abcc iiie ododdo.
    line 11 - ( , , , , )
    line 12 - qerad adf adf adsfdasfadf.

    All lines are ended by “CR LF” characters.
    Language defined as “None (Normal Text)”.
    No Encoding defined.
    Notepad++ v7.9.5 (32-bits) Non-portable.

    Thank you.



  • @Marcos-Ferreira

    You probably have some plugin that is doing this.

    Go to the ? menu, drop it down, choose Debug Info… and copy and paste the result here.



  • @Marcos-Ferreira ,

    @Bryce-Hartford asked the virtually-identical question last week. You should read the responses there, as well, to help you debug the problem. (Unfortunately, Bryce never came back under that name, so we don’t know what happened to his problem.)



  • Hi, guys!

    I opened two separated instances of Notepad++.
    One with plugins and other whitout.
    The problem don’t occurs when there is no active plugin.

    My debug.info is:

    Notepad++ v7.9.5 (32-bit)
    Build time : Mar 21 2021 - 02:09:07
    Path : E:\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS Name : Windows 10 Enterprise (64-bit)
    OS Version : 2009
    OS Build : 19042.928
    Current ANSI codepage : 1252
    Plugins : AutoSave.dll BigFiles.dll ccc.dll CodeAlignmentNpp.dll ComparePlugin.dll DSpellCheck.dll GotoLineCol.dll HexEditor.dll HTMLTag_unicode.dll JSLintNpp.dll JsMapParser.NppPlugin.dll JSMinNPP.dll mimeTools.dll nppAutoDetectIndent.dll NppAutoIndent.dll NppCalc.dll NppConverter.dll nppcrypt.dll NppEventExec.dll NppExec.dll NppExport.dll NppFavorites.dll NppFTP.dll NppGist.dll NPPJSONViewer.dll NppQrCode32.dll NppRegExTractorPlugin.dll NppTextViz.dll NppXmlTreeviewPlugin.dll OpenSelection.dll PreviewHTML.dll SQLinFormNpp.dll Tidy2.dll XBrackets.dll XMLTools.dll

    These two examples bellow shows you what is really happening. They are inside the same txt file.
    You will see a boolean and a number written as “parameters values”.

    1. First Example:

    <p><span style="font-size: 12pt;">As aulas devem ser realizadas ao vivo, via webconferência, com duração de aproximadamente uma hora, e devem ser gravadas. O link da gravação deverá ser disponibilizado aos alunos após o encontro.
    

    After press <ENTER> at the end of the previous line:

    ( False, , , , , , , , , 2.71828182845905, , ,  )
    

    After press <ENTER> again at the end of the previous line:

    ( False, 2.71828182845905 )
    

    After press <ENTER> again at the end of the previous line:

    Nothing is written, but a blank ou empty line - (no parentheses and parameters)
    

    2. Second example:

    <p><span style="font-size: 16px;">Os encontros acontecerão na plataforma ABC respeitando o horário de cada Unidade Curricular, ou seja, numa UC que acontece às segundas, de 8h às 12h,
    

    After press <ENTER> at the end of the previous line:

    ( False, , , , , , , , , , 8, , , 12,  )
    

    After press <ENTER> again at the end of the previous line:

    ( False, 8, 12 )
    

    After press <ENTER> again at the end of the previous line:

    Nothing is written, but a blank ou empty line - (no parentheses and parameters)
    

    You can observe in the second example the numbers 8 and 12 as “parameters values”. These numbers were written in the original line and in the next previous lines.

    But in the first example, there is the number 2.71828182845905 as “parameter value”, but the “original line” has no number written in it.

    Just to know, guys, this problem isn’t new for me. I had this some months ago in my workstation but I didn’t look for an answer and let it go.

    Thank you.



  • @Marcos-Ferreira said in How to stop Notepad++ inserts parentheses and commas in new lines:

    The problem don’t occurs when there is no active plugin.

    Good to know. Now you just need to go through and debug which plugin is causing the problem.

    To do that, you could either go through and disable them all, then re-enable one-at-a-time until the problem comes back, or you can disable one-at-a-time

    For my tutorial example, if you just had the three plugins AutoSave.dll BigFiles.dll ccc.dll, you could choose between the following procedures, both starting by opening up the E:\Notepad++\plugins\ directory in Windows Explorer or equivalent:

    1. Disable all, then re-enable until the problem returns

      1. Exit/Close all instances of Notepad++
      2. rename the three subdirectories to
        x_AutoSave\
        x_BigFiles\
        x_ccc\
        
        (by putting the x before each name, the next time you load Notepad++, it won’t see any of those plugins because their directory name doesn’t match the DLL name)
      3. Open Notepad++ and verify the problem does not exist. Exit/Close Notepad++
      4. update the names to
        AutoSave\
        x_BigFiles\
        x_ccc\
        
        then load Notepad++ (the AutoSave plugin should be enabled). Check if the problem exists; if it does, you’ve found the culprit. Otherwise Exit/Close Notepad++ and continue
      5. update the names to
        AutoSave\
        BigFiles\
        x_ccc\
        
        then load Notepad++ (the AutoSave and BigFiles plugins should both be enabled). Check if the problem exists; if it does, you’ve found the culprit. Otherwise Exit/Close Notepad++ and continue
      6. update the names to
        AutoSave\
        BigFiles\
        ccc\
        
        then load Notepad++ (the AutoSave and BigFiles plugins should both be enabled). Check if the problem exists; if it does, you’ve found the culprit. Otherwise Exit/Close Notepad++ and continue
      7. repeat for any other plugins not in my example
      8. If you make it through all your plugins and didn’t find the culprit, it might be a combination of plugins together, or your previous experiment of plugins-vs-no-plugins had another hidden variable.
    2. Disable one at a time until the problem goes away

      1. Exit/Close all instances of Notepad++
      2. update the names to
        x_AutoSave\
        BigFiles\
        ccc\
        
        then load Notepad++ (the AutoSave plugin should be disabled). Check if the problem goes away; if it does, you’ve found the culprit (the plugin you just disabled is the culprit). Otherwise Exit/Close Notepad++ and continue
      3. update the names to
        AutoSave\
        x_BigFiles\
        ccc\
        
        then load Notepad++ (the plugin you just Xed should be disabled). Check if the problem goes away; if it does, you’ve found the culprit (the plugin you just disabled is the culprit). Otherwise Exit/Close Notepad++ and continue
      4. update the names to
        AutoSave\
        BigFiles\
        x_ccc\
        
        then load Notepad++ (the plugin you just Xed should be disabled). Check if the problem goes away; if it does, you’ve found the culprit (the plugin you just disabled is the culprit). Otherwise Exit/Close Notepad++ and continue
      5. repeat for any other plugins not in my example
      6. If you make it through all your plugins and didn’t find the culprit, it might be a combination of plugins together, or your previous experiment of plugins-vs-no-plugins had another hidden variable.

    You can pick whichever of the two methods you wish (you shouldn’t have to do both)



  • @PeterJones

    I started to test the plugins as you said.

    But something told me that the problem is with one of the Npp* plugins.

    After remove all and reinstall them one by one, I discovered the cause of the problem, the NppCalc plugin.

    This plugin is responsible for evaluating different expressions in Notepad++.

    After it is installed, it remains “active” by default.

    To turn it off, you have to unmark its “Active Calc” menu option or pressing “Ctrl + Shift + C”.

    Reading its description again, it is written:

    Evaluate expressions in Notepad++.
    ...
    Q: How does this work?
    A: Just type function name and press Enter!
    

    So, if the line has something that can be interpreted as an expression, it evaluates it after you press <ENTER> and shows the result as a new line.

    For example, a line without commas and with just the period in the sentence will not be evaluated. Otherwise, it will be read as an expression.

    Well,

    I can’t remember when and why I installed it, but I think it could be improved by changing the keys to run it or started it inactive after installed.

    Thanks for your attention and support.

    Cheers!!!


Log in to reply