• How to use a first line as tab bar title in new files?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @afernandes

    should this mean you
    open a new doc
    type anything into the first line
    press enter
    and it should appear as the text in the tab??

    If so, no save way to do so.

    Cheers
    Claudia

  • Formating SQL syntax when pasting from MS Access

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Bacel-Younan

    did you try @Guido-Thelen s SQL Formatter?

    Cheers
    Claudia

  • find in files and replace and regex

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to Uninstall "Npp Xml Treeview" plugin?

    3
    0 Votes
    3 Posts
    3k Views
    chcgC

    See https://github.com/joaoasrosa/nppxmltreeview/issues/19, there was a bug in the dll version reported by the plugin dll.

  • 新的notepad++ 打开xml文件后不支持反注释命令了

    2
    0 Votes
    2 Posts
    2k Views
    chcgC

    Google translate:
    After installing the new notepad ++, use the Ctrl + Q comment code, and then press the key combination can not comment, and hope that the new version can modify the problem.
    thank you very much

    Version 7.3.3? Which programming language? Working for me with e.g. python.

  • Top to Bottom instead of side by side

    3
    0 Votes
    3 Posts
    12k Views
    3d1l3

    Excellent!!!

  • Regex: Can I Delete the content of files that doesn't have some words?

    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello @robin-cruise,

    First of all, it would be better to back up all the files, concerned by the Search/Replacement ;-))

    Now, if all these files are located in a specific folder :

    Open the Find in Files dialog ( Ctrl +Shift +F )

    In the Find what: zone, type (?s).*\s(my baby goes away)\s?.*|.+

    In the Replace with: zone, type ?1$0

    In the Filters zone, enter \*.txt or else…

    In the Directory zone, specify the folder, containing all the concerned files

    If necessary, select the Match case option, if the string to search for, must have this exact case

    Select, of course, the Regular expression search mode

    Click on the Replace in Files button

    Please, verify, one more time, that the FOUR zones, Find what:, Replace with:, Filters: and Directory:, are correctly filled !

    Click on the Yes button, of the dialog Are you sure?

    Et voilà !

    => All the contents of the files, that do NOT contain the string my baby goes away ( not embedded in a larger word ), are deleted

    Notes :

    The (?s) syntax, at the very beginning of the search regex, ensures you that the regex engine consider the dot regex symbol as matching any single character ( standard or EOL character )

    Then, the remainder is an alternative between :

    .*\s(my baby goes away)\s?.* : All the contents of the current file scanned, containing, at least, one string my baby goes away, not glued in a larger expression. So, the last string my baby goes away is stored as group 1

    .+ : All the contents of the current file scanned, which do NOT contain the string my baby goes away

    In replacement, the syntax ?1$0, strictly (?1$0), is a conditional replacement that means :

    If group 1 exists ( your specific string found ), all the contents of the current file are replaced with the entire searched string ( $0 ), that is to say all the contents matched !

    If group 1 does not exist ( NO specific string found ), no replacement action occurs => All the contents of the current file are, simply, deleted

    A question mark ? , after the final syntax \s , is necessary, for the unique case, where the string my baby goes away ends the current file, without any final line break !

    Best Regards,

    guy038

    P.S :

    As described above, sometimes, it’s easier to use the general template of a list of alternatives : (NOT This|NOT That|.....)|(This)|(That)......

    All the alternatives to EXCLUDE, are re-written, with the syntax \1, in the replacement part

    All the alternatives to INCLUDE, are replaced, thanks to each syntax (?#....), in the remplacement part ( # > 1 ) OR deleted if this syntax is absent

    Consider, for instance, the original text, below :

    Jane said to Tarzan : "Tarzan" is a very strong person, much more than "Jane" is ! "Tarzan and Jane" or "Jane and Tarzan"

    And suppose that we would like to convert , in uppercase, the first names Tarzan and Jane, ONLY IF they are NOT surrounded by double quotes !

    Then, we could use the simple S/R :

    SEARCH : ("Tarzan"|"Jane")|(Tarzan)|(Jane)

    REPLACE \1(?2TARZAN)(?3JANE)

    As the replacement action is identical, for each first name, we could also use :

    SEARCH ("Tarzan"|"Jane")|(Tarzan|Jane)

    REPLACE \1(?2\U\2)

    Note that when group 2 is defined, group 1 is NOT defined. Then, in replacement, the form \1 stands for an empty string !

    Of course, the two following S/R, more complicated, may be used and produce the same replacements :

    SEARCH (?<!")(Tarzan|Jane)|(Tarzan|Jane)(?!")

    REPLACE \U\1\2

    or

    SEARCH (?<!")(Tarzan|Jane)|((?1))(?!")

    REPLACE \U\1\2

    After replacement, we get, in all cases, the new text, below :

    JANE said to TARZAN : "Tarzan" is a very strong person, much more than "Jane" is ! "TARZAN and JANE" or "JANE and TARZAN"

    For newby people, about regular expressions concept and syntax, begin with that article, in N++ Wiki :

    http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

    In addition, you’ll find good documentation, about the new Boost C++ Regex library, v1.55.0 ( similar to the PERL Regular Common Expressions, v1.48.0 ), used by Notepad++, since its 6.0 version, at the TWO addresses below :

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    The FIRST link explains the syntax, of regular expressions, in the SEARCH part

    The SECOND link explains the syntax, of regular expressions, in the REPLACEMENT part

    You may, also, look for valuable informations, on the sites, below :

    http://www.regular-expressions.info

    http://www.rexegg.com

    http://perldoc.perl.org/perlre.html

    Be aware that, as any documentation, it may contain some errors ! Anyway, if you detected one, that’s good news : you’re improving ;-))

  • 0 Votes
    6 Posts
    3k Views
    Claudia FrankC

    @Dave-Greene

    what do you mean by

    Move/Clone To options aren’t back yet

    ?

    If I right click on a saved document tab I do see and can use the two functions.

    Cheers
    Claudia

  • Double-Clicking associated file to open it triggers an error.

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Dave-Greene

    Maybe procmon from sysinternals might help here.
    Download and run it, create a filter with notepad++.exe. Npp should not be active, double click the file and see what procmon reports in regards of starting npp.

    Cheers
    Claudia

  • Selecting text by region

    5
    0 Votes
    5 Posts
    22k Views
    David GibbsD

    Thank you very much Scott and Jim. I knew it had to be something pretty easy. It was holding down the alt key I was missing. That is exactly the function I wanted.

    Thanks again,
    David

  • Close active window

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    PeterJonesP

    @Radomir-Żółtowski,

    The standard Windows shortcut is Alt+F4, not Ctrl+F4. And Alt+F4 works as expected. If you click the NPP icon in the upper-left of the NPP window, it will pull down the standard Windows “move/size/close” menu, which shows the global shortcut for closing the window is Alt+F4.

  • cannot toggle INS and OVR

    4
    0 Votes
    4 Posts
    5k Views
    Per IsaksonP

    A single click on the INS/OVR button in the bottom right corner of the Notepad++ window toggles the mode. (That is the right end of the status bar.) Tested with Notepad++ v7.3.1 (32-bit). See http://docs.notepad-plus-plus.org/index.php/Keyboard_And_Mouse_Shortcuts

  • Filter with path pattern in Search in files

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Touble finding a setting

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Felix PicotF

    @Claudia-Frank allright thanks (:

  • Question to Auto-Update

    3
    0 Votes
    3 Posts
    2k Views
    Mike BxyzxyzM

    Thanks a lot! :-)

  • Trouble Downloading

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Casey-Vega

    maybe you wanna explain in detail what you did?
    Downloaded from where?
    Actions done after downloading?

    Cheers
    Claudia

  • How to Hyper-Link

    6
    0 Votes
    6 Posts
    4k Views
    gstaviG

    Why do you want such a thing from Notepad++?
    Why not use something like Microsoft OneNote or Zim which were designed for the task?

    Notepad++ displays all the chars in a file as they are. Hiperlinks by definition have displayable part and a hidden target part. Notepad++ is not designed to hide anything that exist within the file.
    A plugin that relies on external database can do the trick. Either Open Selection will be fixed for you or you can adjust for your needs a tags based plugin that normally allow coders to Go To Definition of a tag. You will need to generate and maintain the tags database by yourself so your desired keywords will reference the txt files.

  • 0 Votes
    8 Posts
    4k Views
    WerwacKW

    Hi MAPJe71,

    Thank you for this new code.
    I think having 2 separated parser definitions, one for the scripts (.ms) and one for the macros (.mcr), is fine in most of the cases, and your suggestion is nice :)

    I tested the code above and I have the following issues:

    for .ms files, the structure is correctly identified with the “class” icon and as a new folder level. If there are 2 or more structures in the file though other structures are not recognized at all.

    for .mcr files the new folder level for macros is not recognized. It would be nice if it could also support several macros in the .mcr file.

    I updated the sample files to introduce several structures and macros to test this, you can find them in this package: https://we.tl/kSLs8d5zhg

    Thanks a lot for your help,

    Werwack

  • Reuse search criteria

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Michael-Weiner

    Well, if you are talking about your immediately previous search text, simply invoke a new search when your caret is on some whitespace; then Notepad++ will put the most recently searched for text in the “Find what:” box.

  • Need a workable SherloXplorer plugin

    9
    0 Votes
    9 Posts
    6k Views
    Hong-Xuan JiH

    @young-developer
    Thanks for your replies, but my font size is normal.

    @chcg
    I had tried the version 0.5. but the same problem poped up.

    : (