• What's better?

    3
    0 Votes
    3 Posts
    205 Views
    PeterJonesP

    @FurryX-GD said in What's better?:

    What’s more immportant? Newest version or 64-Bit? The Current version is only 32-Bits, I am a newcomling on Computer/Computer Programming, as you may could guess. I have of course a 64-Bit PC, so I don’t know what’s more important… Also why does the newest version doesn’t have a 64-Bit version?

    Um. What is more important to you is the only meaningful question, because different people have different needs.

    And you are working under a false assumption. The newest version of Notepad++ as of today, v7.8.9, comes in both 32-bit and 64-bit, as you can see easily at https://notepad-plus-plus.org/downloads/v7.8.9/ :
    3ba76d6c-0098-46f7-9b01-95c1c07387f3-image.png

  • Replace help

    5
    0 Votes
    5 Posts
    637 Views
    PeterJonesP

    @Tco-Robinson ,

    Your problem statement is hugely ambiguous. If you want help, it’s generally best to supply enough information for us to understand your question, let alone answer it.

    Based on your original problem statement, I would have said

    FIND = \h*\(|\) search for 0 or more spaces followed by a (, or search for ) REPLACE = blank/empty replace with nothing SEARCH MODE = regular expression

    Starting from

    A Song of Ice & Fire (2010) Some title hear (year) Blah (blah)

    This would give

    A Song of Ice & Fire2010 Some title hearyear Blahblah

    … which is nonsense, but matches the description you gave in your original post

    However, this comes close to meeting @Szabolcs-Horváth’s problem statement… which is slightly better, because he at least showed “before” and “after” data. For @Szabolcs-Horváth , though, since he doesn’t need the space removed, I would simplify to a character class, such as [\\[\]] which means find either the literal [ or the literal ] and replace with nothing.

    With your (@Tco-Robinson’s) added caveat of “I need to remove [what is] in the parentheses as well”, it becomes a completely different problem than you originally described, with a different solution:

    FIND = \h*\(.*?\) find 0 or more spaces, followed by literal parentheses with anything inside) REPLACE = empty/blank SEARCH MODE = regular expression, Make sure . matches newline is turned off
    This will convert the original data set I showed to A Song of Ice & Fire Some title hear Blah

    which might be closer to what you want.

    However, since you specifically said “year”, then maybe you don’t want non-numerical contents of parentheses to be deleted. if that’s the case, change FIND WHAT to \h*\(\d{4}\), which searches for 0 or more spaces, a literal (, exactly four digits, and a literal ), which will convert the original data to

    A Song of Ice & Fire Some title hear (year) Blah (blah)

    … so the text inside parentheses stays there, but the year (four-digit number) in parentheses goes away.

    Do you see how useful it is to actually include examples of things that do and don’t match, and to show both before and after data? It makes your problem much easier to understand, because then I could have presented just one of my three solutions, rather than having to come up with all three, or having to drag the information out of you to narrow it down.

    I am posting useful advice below. If you do not show that you have read and understood this advice, by following this advice in any future response, you will find that any help you might get will likely not meet your needs (and the help will not be from me, if you don’t act on the advice given). If you want good help, you have to give enough information for us to help you.

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as plain text using the </> toolbar button or manual Markdown syntax. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get… Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • Notepad++ stopped saving closed tabs

    8
    0 Votes
    8 Posts
    971 Views
    Igor HolewińskiI

    @PeterJones

    Actually C:\Program Files (x86)\NPP\Notepad Plus Plus\ folder was set to read-only mode. I have set it to modify type and deleted the file doLocalConf.xml. It required admin rights, which surpisingly I had at this point. I guess that my company’s policy regarding this is different in various cases, for example I cannot install any software of my own, but I am able to perform this action.
    Anyway, after running Notepad++ again it cleared my tab session, but after having a new one and shutting the application, it was still present there after restarting NPP. So, the issue was solved by the step 2 from your post.

    Thank you very much for your help, that was really annoying thing to deal with on everyday basis.

  • 0 Votes
    3 Posts
    350 Views
    Евгений КривоноговЕ

    @andrecool-68 Огромное спасибо!

  • How can i randomize/shuffle lines using notepad ++

    2
    0 Votes
    2 Posts
    6k Views
    Alan KilbornA

    @Rana-Jawad-0

    The script you linked to works for me.
    The script has no 32-bit/64-bit dependency, so it will work in either.
    With no further description than “doesn’t seem to work”, no one can really offer anything beyond saying “sorry to hear that”.

    It appears Notepad++ itself is getting a “shuffle lines” feature, see HERE and THERE. I suppose nothing is stopping you from grabbing an unreleased build that has the feature in it, and using that for your randomization needs.

  • Find my previous post?

    2
    0 Votes
    2 Posts
    168 Views
    Alan KilbornA

    @Peter-Gillespie

    Maybe you are talking about THIS ONE?

    I got techy and didn’t provide the debug info so it was closed.

    What is “techy”? Maybe a typo?

    5 different “Git” places to do different things

    Hmmm, well I guess there’s a few, but the main 2 are the one above that you (probably?) posted in, and the user-manual one…

    Also if acceptable could a mod perhaps reopen it.

    Typically those "mod"s / devs don’t hang out here.
    This is more of a “user-to-user” support community.

  • Lang.xml Fails to Import

    2
    0 Votes
    2 Posts
    295 Views
    EkopalypseE

    @AzBright1

    I assume because in the xml there are some chars which aren’t escaped correctly.

    change existing with

    <Keywords name="Operators1">* - % &amp; ( ) . / + &lt; = &gt; ;</Keywords>

    and the words <EG and >EG from Keywords1

    with

    &lt;EG &gt;EG

    and then it should import.

  • UDL: Is it possible to use asterisk (*) as a wildcard?

    2
    0 Votes
    2 Posts
    317 Views
    EkopalypseE

    @Piet2609

    Does using {trigger: work for you?

  • can i use autocomplete for module name with python?

    4
    0 Votes
    4 Posts
    918 Views
    TroshinDVT

    https://sourceforge.net/projects/npp-python/

    This python script will generate a custom python.xml file used by Notepad++ for auto-completion features when programming in python (function names, arguments, and descriptions), using your own set of imported modules.

  • 1 Votes
    3 Posts
    394 Views
    AMGeolA

    Sorry…Alan Kilborn
    I was new…repetitive never will happen again…thanks for reply and suggestions…but Np++ had many things option/functions as excel as well…
    stay blessed

  • Notepad++ stopped saving closed tabs

    5
    0 Votes
    5 Posts
    571 Views
    PeterJonesP

    Please note that on Sep 4, 2020, this discussion was continued in another Topic: https://community.notepad-plus-plus.org/topic/19951/notepad-stopped-saving-closed-tabs

    Please use that Topic for any further conversation on this question.

  • Old Pythonscript stopped working

    22
    0 Votes
    22 Posts
    2k Views
    Alan KilbornA

    @PeterJones said in Old Pythonscript stopped working:

    Think about what you just said!

    Clearly, and sadly, there isn’t much thinking going on.
    The same dumb thing was said HERE, turning the dumbness into an official complaint against a great piece of software. :-(

  • Created a test file that not running

    3
    0 Votes
    3 Posts
    528 Views
    PeterJonesP

    @Asher-Knopsnider ,

    Cookies!

    See the FAQ: https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place

    You seem to have a misunderstanding of this forum. This is a forum for Notepad++, where we talk about (and ask/answer questions about) the Notepad++ text editor.

    General programming questions (where “programming” includes writing webpages) are not on-topic here. The best question to ask yourself is “does the answer to the question I want to ask depend on what application I am using to write my code”? If the answer to that question is “no, it doesn’t matter whether I’m using Notepad++ or notepad.exe or something else to write my code”, then the Notepad++ forum is not the right place to ask the question.

  • .dsc files

    2
    0 Votes
    2 Posts
    289 Views
    Terry RT

    @Todd-Scheck said in .dsc files:

    pluggin for .dsc files

    Doing a google search for this file format immediately turns up a couple of types. One is a file used by Nikon to support images taken on a camera. However they state that the file is used by the software, not to be opened manually. Another is related to WPS Office and as such may well be a binary file, or at least again a file that may contained data formatted only for use with that software.

    I hope you understand that Notepad++ is a “text” editor. It does not understand any binary data and will very likely corrupt any such file you attempt to use in Notepad++. If the file is only designed for “internal” use (within the S/W that uses it) again you are likely to cause issues using it in Notepad++.

    Do you have more info on what is actually contained in the file you want to open in Notepad++, like the source?

    Terry

  • Help needed please

    8
    0 Votes
    8 Posts
    317 Views
    Terry RT

    @Francesca-D-Angelo said in Help needed please:

    without the " at the beginning

    First off, thanks for reading and doing as requested. It makes it so much easier if the examples can be trusted.

    Try my previous solution and just remove the ". That should be sufficient although I do note some of the examples don’t have 3 sets. Your data seems a bit arbitrary as generally delimited data will always have the same number of fields

    Terry

  • How to solve the Encoding Issue when reading a file in Notepad ++?

    16
    0 Votes
    16 Posts
    3k Views
    PeterJonesP

    @Anatoliy-Sergeev and @Ivan-Bondarenko ,

    As @andrecool-68 pointed out, your question has nothing to do with Notepad++. You are trying to hack a binary file from a game. Notepad++ is a text editor. Notepad++ cannot be expected to be able to read every proprietary binary file. No text editor, whether it’s Notepad++ or any other text editor, should be expected to read a proprietary binary file. Notepad++ cannot interpret this binary file as text, even if you or the game designer lies and calls it an XML file. It does not matter whether it’s because the file is encoded or encrypted or compressed or just a proprietary binary format: it is not a text file, and Notepad++ cannot help you read it as text.

    Please stop this discussion of game hacking here. It is off topic for this forum.

    -----

    @Анатолий-Сергеев и @Иван-Бондаренко ,

    Как отметил @andrecool-68, ваш вопрос не имеет ничего общего с Блокнотом++. Вы пытаетесь взломать бинарный файл из игры. Блокнот++ - это текстовый редактор. Нельзя ожидать, что Блокнот++ сможет прочитать каждый проприетарный двоичный файл. Ни от какого текстового редактора, будь то Блокнот++ или любой другой текстовый редактор, нельзя ожидать, что он сможет прочитать проприетарный двоичный файл. Блокнот не может интерпретировать этот двоичный файл как текст, даже если вы или дизайнер игры лжёте и называет его XML-файлом. Не имеет значения, потому ли это, что файл закодирован или зашифрован, или сжат, или просто несвободный двоичный формат: это не текстовый файл, и Блокнот++ не может помочь вам прочитать его как текст.

    Пожалуйста, прекратите обсуждение взлома игры здесь. Оно находится вне темы этого форума.

    Переведено с помощью www.DeepL.com/Translator (бесплатная версия)

  • Opening 620 MB SQL file leaves it very slow.

    3
    -2 Votes
    3 Posts
    210 Views
    Luciano FrancaL

    First of all I’m sorry for the English
    i believe i got your help wrong.

    I understood that it was going to have posted the question again in another sector of the forum for that reason I asked the question again here.

    Excuse me.

  • Is there a cmd line flag to turn on Monitoring??

    3
    0 Votes
    3 Posts
    225 Views
    Chris ArndtC

    @PeterJones Thanks. That will work just fine.

  • File format changed to unknown , cant read the file data now

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Vishal-K said in File format changed to unknown , cant read the file data now:

    I have few files which were fine 2 days back but suddenly when I opend the file today it is coming to unreadable format

    I doubt it was anything that Notepad++ did. My first guess would be that you have been infected with a virus / ransomware / etc – I would run a scan immediately, if I were you.

    If that’s not it, maybe you recently installed encryption or compression software, and the file has been modified since you last looked at it in Notepad++.

  • Perfomance on Win 10 compared to being instaled Win 7

    2
    0 Votes
    2 Posts
    203 Views
    Alan KilbornA

    @Rafa-Rafa said in Perfomance on Win 10 compared to being instaled Win 7:

    is a win 10 issue itself or is it notepad++

    All other things (same data, same folder structure, same N++ version) being equal, we can probably exclude N++ as contributing a performance difference.