• Notepad++ 6.9.2 keeps crashing consistently

    4
    0 Votes
    4 Posts
    3k Views
    cmeriauxC

    What are your debug info ? It’s important for us in order to help you.
    Try to do a fresh install. You may have a bugged in your configuration file (in the config.xml)

  • NOTEPAD++ QUERY

    3
    0 Votes
    3 Posts
    2k Views
    Priya ChilongiaP

    Thanks Very Much

  • Language setting for html + javascript file

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Robert-Ulph

    maybe this is interesting for you as well.

    Cheers
    Claudia

  • NP++ doesn't keep file associations..

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Ian-Branch

    this is out of my mind as I don’t have any windows os at the moment.
    Right click on file, select open with.
    If npp isn’t in the list, choose the link open with another app or so.
    If npp, again, isn’t in the list, there was another link like search for your app.
    This opens the explorer and you can select npp.

    Cheers
    Claudia

  • Macro and Clipboard Trouble

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    cmeriauxC

    You may have trigger a paste command with an empty text while you were recording your macro.

    You can debug your macro : have a look in the C:\Users\luke.skywalker\AppData\Roaming\Notepad++\shortcuts.xml file
    here is mine.

    <Macros> <!--Trim Trailing and save - Alt+Shift+S --> <Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83"> <Action type="2" message="0" wParam="42024" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41006" lParam="0" sParam="" /> </Macro> </Macros>

    Cmd 42024 => <!–Trim Trailing Space - -->

    Try to post yours

  • Macro Sharing Help

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    cmeriauxC

    xmf => xml
    sorry for the Typo, I should’nt write on my smartphone

  • Line settings

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Scott SumnerS

    @cmeriaux

    That’s not the same as having a hard-limit like the OP is asking for, but it helps! :)

  • Rearrange the word and numbers at the beginning of each line

    6
    0 Votes
    6 Posts
    3k Views
    Scott SumnerS

    If you follow basically what gerdb42 said to do, and use the following, it should work:

    Find what: ^(.+?)(Favs: \d+ - )(.+)
    Replace with: \2\1\3

  • How to paste specific text

    2
    0 Votes
    2 Posts
    2k Views
    gerdb42G

    You could try the Snippets or SnippetPlus Plugins.

  • Files with "-" in path don't get opened properly in Workspace

    4
    0 Votes
    4 Posts
    2k Views
    cmeriauxC

    It may be a x64 issue. could you test x86 ?

  • REGEX - Select only this part from text

    7
    0 Votes
    7 Posts
    6k Views
    Vasile CarausV

    Peter, looks GREAT ! Your first solution is very good !

    Guy38 already write the second solution on one of my first posts.

    THANK YOU Both !

  • Is it possible to copy mult line regex output that is marked/bookmarked?

    3
    0 Votes
    3 Posts
    3k Views
    Scott SumnerS

    This posting may also be helpful to the OP; even though it is about deleting rather than copying, I think it still has some relevant info: https://notepad-plus-plus.org/community/topic/12192/remove-unmarked-lines-not-just-unbookmarked-lines

  • just a blink of python

    2
    0 Votes
    2 Posts
    2k Views
    cmeriauxC

    Hello,
    try to validate your script with python pep8 (usually installed in python/script folder)
    You may have a problem with file encoding. Configure it as utf-8. Use a correct line ending.
    Header must be a

    #!/usr/bin/env python # -*- coding: utf-8 -*-

    look at https://www.python.org/dev/peps/pep-0008/#source-file-encoding

  • How to turn off opening previous files in 7.0?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    botman99B

    Are you thinking of the “Remember current session for next launch” checkbox? That’s in the “Backup” preferences section.

  • 0 Votes
    3 Posts
    2k Views
    guy038G

    Hello bege10,

    To fully distinguish the different GOTO, CALL and START commands, of your batch file, I suppose that you need all the contents of the line, starting with these commands :-)

    If so, here is, below, a batch parser, which should work nice !!

    Open your active functionList.xml file

    Change the present batch_label id parser contents by the parser, below :

    <parser id=“batch_label” displayName=“BAT Label” commentExpr=“^[\t ](::|REM).?$”>
    <function
    mainExpr=“^[\t ]*\K.+?$”
    displayMode=“$functionName”>
    <functionName>
    <nameExpr expr=“(call |goto |start |(?<=:)).+?$”/>
    </functionName>
    </function>
    </parser>

    Notes :

    The commentExpr string is, either, the word REM or the symbol ::, preceded by possible leading space/tabulation characters and followed by any range, even null, or characters

    Then, the mainExpr string, from which the different entities, to display in the FunctionList window, will be extracted, is any, non-null, range of characters, which follows possible leading space/tabulation characters ( and different from comment ranges ! )

    Finally, the expr string is, either :

    The word call, goto or start, followed by a space and any non null range of characters Any non null range of characters, following a colon ( : )

    IMPORTANT :

    The functionList regex engine does NOT act as the Notepad++ one. By default, it considers that the dot meta-character ( . ) match, absolutely, any character ( standard or EOL ones )

    But, as the Notepad++ regex engine does, it considers that the ^ and $ assertions stand for the beginning and the end of any line

    So, when you want to match, from any location, all the remaining characters of a line, TWO syntaxes are possible :

    .+?$ which matches any non-null range of any character, ( standard or EOL ones ), till the nearest EOL location, due to the lazy quantifier +?

    OR

    (?-s).+ which matches any non-null range of standard characters only, due to the in-line modifier (?-s)

    Of course, if the range of characters may be a zero-length string, prefer the syntax .*?$ OR (?-s).*

    Best Regards,

    guy038

  • Why does N++ access my D: drive on startup

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • All open files close when I shut down.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Göran SchmidtG

    Hi!

    Both those options are checked. My hypothesis is that there seem to be a maximum number for documents to be kept opened (or possibly a maximum number of bytes?), because when I have just a few docs, they remain open in the next session.

  • JS syntax highlighting in ASP?

    5
    0 Votes
    5 Posts
    4k Views
    John DogeJ

    Ah, that’s not how it’s supposed to work. HTML parser should detect language of embedded script blocks on its own without user changing the top-level language, because there are HTML/ASP tags that also need their own highlighting.
    Thanks for the heads up, I think I’ve found the diff between np++ and scintilla code that’s responsible. I should probably take it to github from here.

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • what does the "open session in a new instance of Notepad++" option mean?

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    MAPJe71M

    When you open a session, it is opened in a new instance of Notepad++. A session can consist of one or more files. See also Load Session... and Save Session... in the File menu.