• Wildcard find

    Locked
    5
    0 Votes
    5 Posts
    952 Views
    Brian NoblesB

    Brilliant, and thanks for the extra info.

  • How to exclude empty lines containing tabs and spaces from the search?

    Locked
    9
    0 Votes
    9 Posts
    2k Views
    andrecool-68A

    @guy038 Hi!
    Your option works! Thank you very much for your help!

  • Can't see commas in csv file

    Locked
    7
    0 Votes
    7 Posts
    8k Views
    PeterJonesP

    @Alan-Kilborn said:

    when you use the Submit button on the posting

    The Original Poster is allowed to go back to the Topic Tools menu at any time (until the topic is locked), and select “Ask as question”. Then after it’s marked as a question, the OP can mark it as solved from that same menu.

  • Weird issue with syntax highlighing file export

    14
    0 Votes
    14 Posts
    2k Views
    PeterJonesP

    @Karsten75 said:

    this issue does not occur with N++ 7.6

    Thanks for the extra data point. However, I would recommend against the original 7.6 (no sub-version) for a long-term solution. It had some pretty major bugs in it. v7.6.3 is the first of the 7.6.x series that was reasonably stable; I’d recommend using that one for now (assuming the bug isn’t present there). (I would normally have suggested 7.6.4, but that’s where the multiple UDL files were introduced, and I’m sure it was that feature that accidentally messed up the UDL import.)

  • I need to delete two characters in two continuous lines

    Locked
    12
    0 Votes
    12 Posts
    1k Views
    Alan KilbornA

    @PeterJones said:

    Meta, how do you see what the original text was?

    @Meta-Chuh YEA! How about it Meta??

  • Making sections of a file read only

    Locked
    2
    0 Votes
    2 Posts
    436 Views
    Alan KilbornA

    @Mark-Finlay

    Sorry, not reasonably possible.

  • Trying to import my own language definition/syntax highlighter

    6
    0 Votes
    6 Posts
    1k Views
    Karsten75K

    Hey, thanks for the upvotes, now I think I can post freely! ;)

    I’ll find out in a few seconds when I post my hilarious finding. :)

  • I need to replace specific word with random each line

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Alan KilbornA

    @PeterJones

    Actually, I wouldn’t normally have made it a one-liner…except the “answer” here inspired the one-liner-ness. :)

    I think lambda examples with replace are in the Pythonscript docs/examples.

    And _ isn’t really a throwaway variable, technically. It’s just a one-character variable like a or b.

    See? No big mysteries. :)

  • Trying to run a .py file in IDLE from Notepad++

    7
    1 Votes
    7 Posts
    5k Views
    PeterJonesP

    @Travis-Vawser said:

    Got rid of the pesky “H”, and now it works perfectly

    Glad it works for you now.

    I tried to submit a comment to the posted blog entry, but it rejected my first two attempts as spam, and claimed to accept my third, though it hasn’t shown up yet.

  • Bad Bracket Highlighter

    29
    1 Votes
    29 Posts
    11k Views
    SalviaSageS

    Ignore above, there were 2 syntax errors in there for some reason,
    and I fixed it. I must have made a mistake myself.

  • Set position where and how NPP opens

    Locked
    3
    0 Votes
    3 Posts
    523 Views
    Robin LamacraftR

    I was unknowingly using a very out of date 32bit version.
    Problem resolved by downloading and installing

    Notepad++ v7.6.6 (64-bit)
    Build time : Apr 3 2019 - 23:52:32
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

  • Multi-Line Find and Replace

    Locked
    8
    1 Votes
    8 Posts
    10k Views
    Alan KilbornA

    @Dick-Adams

    Follow current doc -> When ticked, when you press Shift+Ctrl+F to invoke Find in Files, it will grab the current document’s directory and shove it in the Directory box. When unticked, whatever you last had (minutes, days, weeks…ago) remains untouched in Directory.

    Transparency -> super simple, just a visual setting on the Find window

  • NppExec not being installed (though tried through Plugin Admins)

    Locked
    10
    0 Votes
    10 Posts
    2k Views
    kicKORhIT-16384-needSYDneyK

    I think I’ve found the reason.
    Sourceforge is BLOCKED!!!
    Not just that page, but it’s currently unreachable from everywhere in where I live.
    So, this seems like a problem for our country’s censorship or whatever, not on Notepad++'s side.
    Which means…

    I can use the github link, so it would be my (temporatory) solution for the problem. …and here comes…
    since I’ve found a (perhaps serious?) problem on accessing sourceforge within our country, I should report this (if I find somewhere appropriate).

    To sum up, it’s a problem local to our country and not about NPP.
    thanks for all the help! @Meta-Chuh @PeterJones

  • Cannot Open TXT Files - "Session file is either corrupted or not valid"

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    MickardEMTM

    @Meta-Chuh

    Well, I have tried all the steps outlined, and have rebooted the laptop three times. I still cannot get NPP to open a TXT file

    It is still behaving as before, where if the file has no extension, it will open that file. A file with a TXT extension will not open if it is double-clicked, not open if the file is selected from the Light Explorer menu, and will not open if you use the File/Open method

    I did a different type of test and renamed a TXT file as an INI file. NPP opened that file without an error

    I also was able to open an INI file that was generated by another program, and I was able to open a Python file (PY)

    I am thinking it has to do with the Windows context editor I was trying to use. Just not sure how to enable the TXT files again. I am thinking it is a REGISTRY issue

    Michael

  • My preferences go away to every update (backup - autosave is one)

    Locked
    6
    0 Votes
    6 Posts
    764 Views
    Meta ChuhM

    @Alan-Kilborn

    When doing the debug info from unofficial Notepad++, does it really admit to being unofficial? ;)

    sort of.

    if you know the default locations or location patterns of these releases, you can spot it in a fraction of a second, if you look at the path.

    it would not work out though, if a user decides to manually install an official release to C:\Program Files\WindowsApps\NightRise.NotepadWrapped_7.59.32.0_x64__bahp16nyyek9m\ … i would then “autodetect” it as a microsoft store release.
    same for C:\PortableApps\Notepad++ of a regular portableapps updater install.

  • Limit replace to bookmarked lines? Or something else...

    8
    0 Votes
    8 Posts
    3k Views
    Alan KilbornA

    @PeterJones said:

    I’m not sure that “run a regex to bookmark, then run a PythonScript to edit” is any less confusing to the typical user than “run these 2-3 regex in sequence”

    A difference of philosophy. The OP already had his lines bookmarked, the script is decanted down to picking a menu item: e.g. “ReplaceAllOnBookmarkedLinesOnly”. So really it satisfies what was originally asked for, without a lot of mumbo-jumbo and smoke and mirrors with an obscure multistep regex (although those tools are good to have in one’s knowledge toolbox). :)

    Of course, there is the whole install-PS-if-you-don’t-have-it-already hurdle… ;)

  • 0 Votes
    5 Posts
    9k Views
    PeterJonesP

    @Terry-R said:

    Look for option #62 called SCI_LINEEND (at least it’s #62 in my version)

    With newer Notepad++ (like v7.6.6), you can filter on something like LINEEND, and it will make it easier to find than scrolling through 62 (more or less) rows.

    That said, there are SCI_LINEEND (scintilla message id 2314) and SCI_LINEENDWRAP (2451) – by default, 2314 is unmapped, and 2451 is mapped to END key. If you don’t have line-wrap turned on, they both behave the same. If you do have line-wrap turned on, SCI_LINEEND will take you to the end of the actual line (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of the third row); whereas SCI_LINEENDWRAP will take you to the end of the current displayed “row” (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of whichever row your cursor was on) – though if you’re already at the end of the “row”, running SCI_LINEENDWRAP again will take you to the end of the full line. There’s actually a third, SCI_LINEENDDISPLAY (2347, default mapped to Alt+END), which behaves similarly to 2451, except hitting it a second time leaves the cursor where it is.

    Any of those Scintilla messages can be mapped to whatever keyboard keys are convenient. (And scintilla messages are unique, in that you can actually map a given message to more than one shortcut.)

  • How to Build and Run Solution in Visual Studio from GitHub

    Locked
    2
    0 Votes
    2 Posts
    515 Views
    Meta ChuhM

    welcome to the notepad++ community, @rmutalik

    it is best to conduct a community search to get started.
    you will find everything you need.

    example: https://notepad-plus-plus.org/community/topic/13959/building-notepad-with-visual-studio-2015-2017

    best regards.

  • remove quotation marks from a text

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    Terry RT

    @peterfrankw3 said:

    remove the quotes

    The easiest way to do this is to highlight one of the quotes, then select Search, then Replace. You will see the Find What field is already filled in with the quote you selected. I suggest have Search mode set to normal. Make sure the Replace With field is empty. Then click on Replace All button. This will remove all copies of the character.

    If by some chance the quotes you are using aren’t exactly what you have shown here you may need to repeat these steps with any other quote left behind.

    Terry

  • Cannot run in Browser

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Toni-McDonough , Welcome to the Notepad++ forum.

    You said:

    so I am thinking this means I need to hold my conrtol, alt, and shift key down simultaneiously and them push the 82 numbers and C

    Nope. “82” is the ASCII code for the character you hit: R. So Ctrl+Alt+Shift+R is the key combo. That’s also seen if you look in the Run menu’s Launch In Chrome entry. Caveat: by default, v7.6.6 has the old run-menu-style “Launch in XXX” commented out in the XML. If it is commented out for you, it won’t show up in the Run menu, and the keyboard shortcut won’t launch the file in Chrome.

    The reason for that entry being commented out by default: Notepad++ v7.6.6 has a different location for a similar command, rather than relying on the entry in the shortcuts.xml and the Run menu, you can go to View > View Current File In… > Chrome. This will stay the same, regardless of config file.

    You can assign a keyboard shortcut from inside the Notepad++ interface, whether it’s via the old Run > Launch in Chrome or via the new View > View Current File In… > Chrome.

    Settings > Shortcut Mapper For the View version, pick the Main Menu tab filter on Chrome select Chrome For the Run menu version (this will ONLY work if it’s enabled in your shortcuts.xml and visible in your Run menu): pick the run commands tab filter on Chrome select Launch in Chrome after selecting one above, click Modify set the shortcut to whatever you want (watch for conflicts) click OK and/or Close until you’re out of the dialogs