• 1 Votes
    4 Posts
    890 Views
    gapsfG

    @Scott-Sumner
    Yep, “Shift+Ctrl+Arrow”.
    Your advice helped.

  • Emmet: "Go to matching pair" won't work?

    Locked
    1
    0 Votes
    1 Posts
    526 Views
    No one has replied
  • Cloud setting in Notepad++ is deleting files

    Locked
    2
    0 Votes
    2 Posts
    683 Views
    Scott SumnerS

    @twentyTwo

    when an unsaved tab is closed in notepad++, it is deleted

    Yes, that’s the idea. If you close an unnamed tab (e.g. “new 1”, “new 5”, “new 23”) without saving it to a hard-named file first, it and its data are discarded.

  • Is there a current Manual?

    4
    0 Votes
    4 Posts
    3k Views
    AZJIO AZJIOA

    And I’d be happy to help with writing that manual.
    And what’s stopping you from doing this?
    When a person wants to help, 3% of the total work is implied.

  • NPP Sessions

    6
    0 Votes
    6 Posts
    2k Views
    Scott SumnerS

    @mikeguyre said:

    The File open dialog for Load Session defaults to the folder of the last file you had opened so you have to navigate to find the session file.

    Yes, this is annoying, but if you keep all of your session config files in one folder you can put a link to that folder in your Windows Favorites so that it is only a few extra navigation clicks away.

    Jim’s solution sounds better…try it.

  • Failure to Launch

    33
    3 Votes
    33 Posts
    45k Views
    Scott SumnerS

    @Jos-Debouvere177 said:

    I’m facing the same problem ‘failure to launch in browser’

    “…in browser” ?

  • Issue with 'asNotepad.xml' file.

    12
    0 Votes
    12 Posts
    3k Views
    SalviaSageS

    Wow. Great post @PeterJones.

    You may not know this, but editing the windows registry is one of my strongest areas on computers. So it was a breeze for me to recreate what you have said here.

    This method is superior to creating a asNotepad.xml file in the Notepad++ directory because that does not open the file that you want to open in the viewing tab but only loads it into the tab bar so you are left staring at an older file that you opened which is definitely not what the user wants.

    Also, this option still allows you to open things in the regular, sessioned and tabbed notepad++ while giving you another option in the right click menu to open things in a single tabbed format just like notepad.exe

    So, if you also want notepad++ to work like this, I created a .reg file, just create a file that ends with the .reg extension and copy paste the following in to it.

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\SingleTabNotepad++] @ = "Edit with Notepad++ (Single Tab)" "Icon"=hex(2):63,00,3a,00,5c,00,70,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\ 00,66,00,69,00,6c,00,65,00,73,00,20,00,28,00,78,00,38,00,36,00,29,00,5c,00,\ 4e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2b,00,2b,00,5c,00,6e,00,6f,00,74,\ 00,65,00,70,00,61,00,64,00,2b,00,2b,00,2e,00,65,00,78,00,65,00 [HKEY_CLASSES_ROOT\*\shell\SingleTabNotepad++\command] @ = "\"c:\\program files (x86)\\Notepad++\\notepad++.exe\" -nosession -notabbar -multiInst \"%1\""

    This will give you an option on top of the default “Edit with Notepad++” to use notepad++ without the sessions or tabs and will open the files separately just like in notepad.exe (without changing any default notepad++ behaviour)

    Thanks to everyone who replied!

  • Removing Words From Auto-Completion

    10
    2 Votes
    10 Posts
    3k Views
    Scott SumnerS

    @Shelby-Copeland

    I can’t tell if that last reply of yours was dripping with sarcasm or not. :-)

    It would certainly be easy enough to pull one of the files from ...\plugins\APIs into Notepad++ and then do a Find in Files on it (of course you have Follow current doc. checkbox ticked, right?), looking for the exact-case version of pubupdate

    Please post again if this technique doesn’t solve your problem, and we’ll what else can be done.

  • Txt to Asc

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    PeterJonesP

    Does File > Save As and name = file.asc not work for you?

    If not:

    you might want to check to see if you’re hiding extensions in Windows → that “feature” of windows can lie to you (Windows Explorer > View > Options > Change Folder and search options > View = uncheck ☐ Hide extensions for known file types) change the Filter entry in the Save or SaveAs dialog to “all files (.)” or equivalent might want to toggle Settings > Preferences > Default Directory > ☑ Use new style dialog on or off → that setting can change how the Save, Save As, and Open dialogs display behaves, especially for the file filters, and you might be expecting the opposite behavior

    Otherwise, you’ll have to say specifically what you’ve tried (including which settings you have), and how you know it’s not working right for you.

  • Check which numbers are not included

    Locked
    10
    0 Votes
    10 Posts
    5k Views
    PeterJonesP

    @Scott-Sumner,

    That’s easy: from the URL.

    https://notepad-plus-plus.org/community/topic/16392/check-which-numbers-are-not-included/9 ^^^^^
  • 1 Votes
    1 Posts
    535 Views
    No one has replied
  • How to merge 2 seperate lines into 1 and add a colon in between?

    Locked
    2
    2 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @sani-bani

    Try this:

    Invoke Replace dialog (default key: ctrl+h)
    Find what zone: (?-s)^(.+)\R(.+)(?:\R|\z)
    Replace with zone: \1:\2
    Wrap around checkbox: ticked or unticked, as you like
    Search mode selection: Regular expression
    Action: Press Replace or Replace All button, as you like

    Here’s how it works:

    THE FIND EXPRESSION:

    (?-s)^(.+)\R(.+)(?:\R|\z)

    [Use these options for the whole regular expression][1 ] (?-s) [(hyphen inverts the meaning of the letters that follow)][1 ] - [Dot doesn’t match line breaks][1 ] s [Assert position at the beginning of a line (at beginning of the string or after a line break character) (carriage return and line feed, form feed)][2 ] ^ [Match the regex below and capture its match into backreference number 1][3 ] (.+) [Match any single character that is NOT a line break character (line feed, carriage return, form feed)][4 ] .+ [Between one and unlimited times, as many times as possible, giving back as needed (greedy)][5 ] + [Match a line break (carriage return and line feed pair, sole line feed, sole carriage return, vertical tab, form feed)][6 ] \R [Match the regex below and capture its match into backreference number 2][3 ] (.+) [Match any single character that is NOT a line break character (line feed, carriage return, form feed)][4 ] .+ [Between one and unlimited times, as many times as possible, giving back as needed (greedy)][5 ] + [Match the regular expression below][3 ] (?:\R|\z) [Match this alternative (attempting the next alternative only if this one fails)][7 ] \R [Match a line break (carriage return and line feed pair, sole line feed, sole carriage return, vertical tab, form feed)][6 ] \R [Or match this alternative (the entire group fails if this one fails to match)][7 ] \z [Assert position at the very end of the string][8 ] \z THE REPLACE EXPRESSION:

    \1:\2

    [Insert the text that was last matched by capturing group number 1][9 ] \1 [Insert a colon][10 ] : [Insert the text that was last matched by capturing group number 2][9 ] \2

    Created with RegexBuddy

    [1 ]: https://www.regular-expressions.info/modifiers.html
    [2 ]: https://www.regular-expressions.info/anchors.html
    [3 ]: https://www.regular-expressions.info/brackets.html
    [4 ]: https://www.regular-expressions.info/dot.html
    [5 ]: https://www.regular-expressions.info/repeat.html
    [6 ]: https://www.regular-expressions.info/nonprint.html
    [7 ]: https://www.regular-expressions.info/alternation.html
    [8 ]: https://www.regular-expressions.info/anchors.html#az
    [9 ]: https://www.regular-expressions.info/replacebackref.html
    [10 ]: https://www.regular-expressions.info/characters.html

    RegexBuddy settings to emulate N++ regex engine: Application=boost::regex 1.54-1.57 / flavor=Default flavor / replacement flavor=All flavor / ^$ match at line breaks / Numbered capture / Allow zero-length matches

  • How to set background color for a own style

    Locked
    1
    0 Votes
    1 Posts
    725 Views
    No one has replied
  • Just installed update, now can't find my stuff!

    Locked
    6
    0 Votes
    6 Posts
    1k Views
    Scott SumnerS

    @PeterJones said:

    Don’t forget these directories… that’s where you will want to look for the files in the future.

    AND…most importantly, although I’m 99% sure this advice will be ignored, these are the directories you create independent backup sets from.

  • Delete a character

    Locked
    2
    0 Votes
    2 Posts
    737 Views
    PeterJonesP

    find what = ^0+
    replace with = `` (empty)
    make sure you’re in regular expression mode


    FYI: if you have further regex needs, study this FAQ and the documentation it points to. Before asking a new regex question, understand that many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backword to get things working for you. If you need help formatting the data so that the forum doesn’t mangle it (so that it shows “exactly”, as I said earlier), see this help-with-markdown post, where @Scott-Sumner gives a great summary of how to use Markdown for this forum’s needs.

  • 0 Votes
    2 Posts
    796 Views
    Scott SumnerS

    @Nico-Henttunen

    It comes up occasionally. You cannot do it with “replace extended”. You can resort to a programming language (in which Notepad++ is not involved) or you can write a script within Notepad++ to do it. Some related script references follow if you care to do your research to get started:

    https://notepad-plus-plus.org/community/topic/15318/replace-text-with-incremented-counter https://notepad-plus-plus.org/community/topic/16307/need-regex-for-incremental-by-1 https://notepad-plus-plus.org/community/topic/16245/find-and-replace
  • Automatic highlighting of lines containing a specific string?

    Locked
    8
    2 Votes
    8 Posts
    8k Views
    Scott SumnerS

    @Esther-Strom said:

    there are some hacks to sort of get close to what I want

    Well, if you’re going to be super-fussy about it… :-) …I’d probably say we aren’t out of good options with Notepad++ yet…maybe stay tuned…but I might say perhaps you aren’t using the right tool for the right job.

    Everybody wants Notepad++ to be great at everything, but it’s really just great at its core duty: text editing. It isn’t great at searching…it isn’t great at log-file monitoring…it isn’t great at hex-editing…the list goes on and on.

    For this specific example, probably something like glogg meets your need better than Notepad++…

  • Keyboard Shortcut for moving tabbed files?

    Locked
    4
    1 Votes
    4 Posts
    3k Views
    Scott SumnerS

    @cmeriaux

    Thanks for the tip! Inspired by this I created two new macros, both tied to the Move to Other View command; one is tied to ctrl+shift+alt+left, the other is tied to ctrl+shift+alt+right. Although they both do the same thing, it is easier and feels more natural to have the arrow key be the one that points in the direction I want the tab to go. [Note that this implies I have my views arranged left-right instead of over-under.]

  • Remove default extension in Style Configurator

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    NotepadPP_UserN

    Thanks, this worked. maybe the GUI setting could allow this in the future.

  • Regexp help

    Locked
    3
    2 Votes
    3 Posts
    830 Views
    Luther BlissetL

    Done, Thanks for your help!

    I’m familiar with regexp concept but never used them before.

    Best regards,

    cid