• 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
    6k 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
    514 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
    704 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
    695 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
    775 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
    2k 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
    804 Views
    Luther BlissetL

    Done, Thanks for your help!

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

    Best regards,

    cid

  • Please help for RegEx query

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Scott SumnerS

    @guy038

    As you know, I’m not much for shortening already published and working regexes here, but in this case I think it is worthwhile as it makes what is being done much clearer.

  • Tab Bar style with multiple lines

    5
    0 Votes
    5 Posts
    3k Views
    pvlmkvnP

    Hi Nico,

    were you able to resolve this problem? I just upgraded after a looong time (from 7.3.2 to latest 7.5.8) and I got the same design of my tabs and want to get it back to normal look :)

    Thanks,
    Pavel

  • Help with a Regex query

    Locked
    2
    0 Votes
    2 Posts
    655 Views
    Kyllom HanK

    I answer to myself.

    As Sebastias Proske told me, the solution is ‘to use a non-capturing group for mere grouping purpose, character class is the wrong tool here’.

    Search: (^[—¿¡«]*?)(?:(á)|(é)|(í)|(ó)|(ú))
    Replace: \1(?2Á)(?3É)(?4Í)(?5Ó)(?6Ú)

    Example:

    Before: —¿árbol ácido?
    After: —¿Árbol ácido?

    Regards!

  • M3u Playlists: Replacing Paths & other data inside an M3u file

    Locked
    14
    2 Votes
    14 Posts
    10k Views
    Jim KJ

    Terry & Scott, Thanks again for the support & references to follow up…more food for thought.

    Best wishes,

    JimK

  • Run html from css tab

    Locked
    2
    1 Votes
    2 Posts
    760 Views
    PeterJonesP

    Unfortunately, that’s really what effectively needs to be done, when using the edit-then-launch workflow. You could try to automate the process (write a PythonScript which would save the current file, grab the filename, then search through other open documents, looking for a HTML file that links to that css filename, then launches that HTML). But, honestly, that seems like the hard way to me.

    If it were my workflow, when I opened the HTML and the CSS, I would load the HTML into my browser. Then any time I save the HTML or CSS file, I would just hit the browser’s reload button to refresh what’s there.

  • UDL: Deal with string of numbers

    4
    0 Votes
    4 Posts
    1k Views
    Jim DaileyJ

    @Jorge-De-Anda-Salazar
    Sorry for the late reply; I’ve been on a quick vacation. :-)
    There is no regular expression support in UDL, so I am pretty sure this too is not possible.
    But, don’t take my word for it. You can do some cool things with UDL if you play around with it, but I don’t know how I would highlight dd.dd.dd.

  • Problem editing font size in default style

    Locked
    4
    1 Votes
    4 Posts
    1k Views
    PeterJonesP

    No deprecated plugin list that I’ve heard of.

    If you want to uninstall one that the Plugin Manager won’t let you (because of the won’t update), you can just go into the program directory, plugins subdirectory (and its hierarchy), and look for the associated DLL for a given plugin (normally pretty close to the plugin name, but without spaces). Assuming NPP is closed, you can just delete the DLL, and it will be uninstalled.