• 0 Votes
    2 Posts
    13 Views
    PeterJonesP

    @Laura-Pla ,

    If I have a long piece of text in Word and I try to add it to Notepad, it all comes out with strange characters. Is there a possible format that Notepad accepts, so I can format it later, or do I have to retype the entire text?

    This forum is about the application Notepad++, not Microsoft’s notepad.exe app that automatically comes with Windows. If you are asking about the Microsoft app, we cannot help you. But I will continue my response assuming you meant “Notepad++”

    If you copy text from inside MS Word and paste it in Notepad++ , it will properly paste the text. If you open the .docx Word file in Notepad++, then you will see a bunch of weird symbols like ETX and DC4 and NUL , and you cannot copy and paste that and expect that it will be “normal text” – our FAQ explains why it doesn’t work to open a .docx file in a text editor like Notepad++ (short version: because .docx is a binary format, not a text format).

    If this isn’t enough of an answer for you, you will need to provide more details, including the ?-menu’s Debug Info and the exact steps you are taking to copy from Word to Notepad++. Screenshots could also help us diagnose your problem.

  • 0 Votes
    2 Posts
    63 Views
    Victorel PetrovichV

    @Adam-Fradley How can I tell?

  • .Net versions

    Notepad++ & Plugin Development
    6
    0 Votes
    6 Posts
    728 Views
    Guido ThelenG

    @General-Coder
    I had the same issue when I installed a new Visual Studio 2022 and forgot to install the packages for C++ development.
    Regards
    Guido

  • 0 Votes
    4 Posts
    78 Views
    M Andre Z EckenrodeM

    @Ekopalypse

    Thanks much. My bad for even bringing it up, actually, since I already had back in 2021 and was advised about the lambda workaround at that time. Forgot about that.

  • 0 Votes
    4 Posts
    57 Views
    PeterJonesP

    it was Consolas!

    Weird. I have never been able to get Consolas to give ligatures.

    but here is the weird thing - i changed Consolas to JetBrainsMono (love the IntelijIDEA font xD).
    It stopped auto-converting!

    That’s truly weird, because JetBrains Mono has ligatures. JetBrains Mono NL is the version that doesn’t have ligatures (the NL literally means no-ligatures, as far as my research uncovered)

    Now, reverting to Consolar…it no longer changes it !

    Glad you got it to a state you like it. (However, I would actually recommend that you try to get used to the ligatures: those fonts were designed to be monospace even with the ligatures, so it helps your brain parse what you’re reading much easier, even more than just syntax highlighting alone. At first, I was opposed to the ligatures, but I forced myself to try the experiment for a week, and found when I tried to go back that I missed the ligatures. So now Fira Code is my go-to monospace font.)

  • Next generation macro system

    General Discussion
    3
    0 Votes
    3 Posts
    108 Views
    Alan KilbornA

    @Abhay-Miller said:

    just another overhyped promise

    Note in case it isn’t clear, that there were never any promises made, by anyone, for a “next gen” macro system.

    @Victorel-Petrovich seems to be on a one-man crusade to make people think so, however. Not to fault him, of course, because, it’s clear that he wants such a macro system, and to quote an overused phrase, “it’s good to want things”.

    IMO, there’s no need for a better macro system, because scripting plugins have existed for a long time, and are very robust, and eliminate the need for macros of any kind.

  • 0 Votes
    4 Posts
    113 Views
    David FoxD

    @PeterJones said

    mybrowser.exe file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)

    This was the solution. upvote.

  • TAB like typewriter time

    General Discussion
    4
    0 Votes
    4 Posts
    127 Views
    CoisesC

    @Valtécio said in TAB like typewriter time:

    I will continue trying to find a setting to make this plugin work properly

    At the risk of this sounding like bad-mouthing and self-promotion:

    In my opinion, the current ElasticTabstops plugin is worthless. Three years ago, its creator wanted to take over the name of the existing ElasticTabstops plugin for his new version. The author of the older version conceded that he didn’t have time to maintain it and gave his blessing to the change. The new author then put up one version and promptly abandoned it. Issues are ignored and there is no evidence of any intention to correct its problems.

    In April of 2023 I released a plugin named Columns++. Among other functions, it includes an implementation of Elastic tabstops.

    If you want to try an Elastic Tabstops implementation as a possible improvement to your workflow, I recommend the one in Columns++. You can install it from Plugins Admin. I strongly recommend uninstalling the other one first.

  • AutoComplete XML Problem

    Help wanted · · · – – – · · ·
    3
    1 Votes
    3 Posts
    133 Views
    S

    @PeterJones said in AutoComplete XML Problem:

    Thus, it does not see the # at the beginning as being part of a “word” when trying to auto-complete.

    I thought something like that might be the case but there was always a possibility of user error!

    You’d have to do #PB instead of #P before it would pop up
    Use Settings > Preferences > Delimiter’s

    By default the PureBasic IDE doesn’t show autocomplete before 3 characters anyway so I can’t see an issue there personally, but there’s a workaround for anyone who just can’t live with that.

    I am updating the wording of the user manual:

    Thank you for your amazing response! That’s just what I’m looking for.

  • 0 Votes
    7 Posts
    162 Views
    Victorel PetrovichV

    @PeterJones said in How dynamic-ID menu commands are executed and relation to macros:

    There is no “universally constant value” necessary for Notepad++ to store for it to be working the way it is.

    And creating a new identifier rather than using menuCmdID is not likely to happen (nor should it, IMO)

    That scheme (even if hypothetical) seems to work very well as long as it’s not a problem that the IDs change when you remove menu entries.
    But we do know that it is in fact a problem for recording macros.
    Here are 2 approaches I can think of (besides the “shut up and hack the XML files” one :) ) :

    A. Constant IDs version

    Still have a linked list to represent the structure of the (dynamic) menus, but whose contents are just the IDs of those commands. Can still be in same range as current IDs, if needed.
    Add a dictionary (hashmap) to map from those IDs to the respective actual commands, or in case of macros - list of actions , as you describe in your post above.
    Npp getting command 20001 for ex, involves looking up in the dictionary - most often a constant time operation.

    Deleting an menu entry involves deleting the respective entry in the linked list and also the ID-value pair in the dictionary.

    In addition to that, to ensure that generated IDs stay within a given range: Several schemes are possible, one of the simplest can be just generate a key in range and test that it is not present in the dictionary.

    B. Dynamic IDs, but synchronized in every saved macro

    Basically, keep the scheme as it is at present, but add a way to update, for each macro, every stored referenced menu command ID in an Action record:
    at every removal of a menu entry, compute how the rest of entries’ IDs would change (if located After those removed, the ID would decrease by one) and traverse the linked list of all macros and update that ID in every action that refers to a menu-command in the range of the dynamic-IDs types (Run, Plugin and Macro commands).
    Thus on Npp closing, the macros written in XML will also contain updated IDs.

    But don’t pretend the niche [for a more powerful macro system ] doesn’t already have a plethora of entries.

    I think there is plenty of room for a macro system to grow in power and STILL be much easier to do a lot of common tasks, than the same tasks in any scripting language.
    Because with macros you don’t have to learn and remember syntax.

  • 0 Votes
    2 Posts
    57 Views
    Mark OlsonM

    @tlt1970s
    The ComparePlus plugin is your best bet for this sort of task.
    I highly recommend this plugin for all Notepad++ users. I regard it as almost essential.

  • Fighting Malicious Ads on Download Pages

    Pinned Security
    41
    3 Votes
    41 Posts
    19k Views
    donhoD

    @MichellesCode

    The image that I am seeing. I wasnt able to get the URLs, apologies. I am based in US.

    If you happen to see them again, please send the link(s) to don.h@free.fr.

  • 0 Votes
    17 Posts
    941 Views
    Alan KilbornA

    @guy038 said:

    After some tests

    …of the version from the PR…

    "…in extended mode, I should add the \r\n at the end of each line for a correct search”

    Well… I think the answer to that is… don’t do it.

    It’s a matter of knowing what your data is. And, admittedly, this is difficult as real \r and \n are invisible in the Find what box. But this is true also if you select some multiline text and press Ctrl+f, it’s not peculiar to the proposed new code.

  • 0 Votes
    2 Posts
    84 Views
    Alan KilbornA

    @Bernard-Jouffrey

    Antivirus software in use?

  • notepad++ flagged as malicious, should i worry?

    Security
    3
    0 Votes
    3 Posts
    172 Views
    xomxX

    @Zhane-Hernandez said in notepad++ flagged as malicious, should i worry?:

    https://hybrid-analysis.com/sample/ca3f56a705b26536b44f9213dd75f420139902f8d0a2851b176351cd3dab8685

    Did you check that hybrid-analysis report?!
    I found its Risk Assessment part hilarious (remember, N++ is a text editor, so who would e.g. expect it to work with the Clipboard or the keyboard ;-) ), so commented some stuff below:

    Spyware Contains ability to open the clipboard Contains ability to read clipboard data Contains ability to retrieve keyboard strokes Found a string that may be used as part of an injection method Fingerprint Contains ability to retrieve information about the current system Queries process information Evasive Found a Wine emulator related string Marks file for deletion Possibly tries to evade analysis by sleeping many times

    From the Spyware part is only interesting the “Found a string that may be used as part of an injection method” - I guess it will be a N++ or its underlying libraries autodetection pattern string signs for different shells recognition etc.

    Fingerprint part is a typical AV nonsense, that stuff use 99% apps.

    And Evasive - “Wine emulator related string” is correctly there because N++ needs to detect&disable some stuff (e.g. Scintilla DirectWrite) while running under the WINE emulator. “Marks file for deletion” probably means that the AV scanner just found the MS MoveFileEx WINAPI sign used in the code or the NSIS installer postponed deletion of the loaded NppShell extension. “Possibly tries to evade analysis by sleeping many times” - here IDK whether to laugh or cry at the state of the so-called “risk detection”.

  • Shouldn't be it the responsability of UN?

    Humour
    2
    0 Votes
    2 Posts
    169 Views
    Lycan ThropeL

    @donho ,
    I’m not sure this is humor for it’s own sake, or a veiled attempt at sarcasm. Either way, I don’t want govenment, especially the UN in anything, period. :-)

  • 0 Votes
    7 Posts
    143 Views
    Victorel PetrovichV

    :) you are not lucky, eh?

    It looks like the reason it works for me is that I’m using the LF EOL, not CR LF as typical in Windows.

    Cheers

    P.S. @Brent-Ficker if you’re not familiar at all with regex, the “Extended” mode setting would work for this particular problem too, to gently introduce you to such things.

  • 0 Votes
    5 Posts
    110 Views
    jabcreationsJ

    @PeterJones

    I had to reinstall to get the English Customizable file installed (C:\Notepad++\localization\english_customizable.xml). I made some recommended changes (name="Exit&°"), changed to English and then back to English Customizable and tested it and it did not exit as desired; thanks!

  • 0 Votes
    3 Posts
    113 Views
    Victorel PetrovichV

    @PeterJones
    The advantage of a specific category is that one can subscribe / watch that particular one. Or binge in reading many “solutions” in a row.
    “General” is general, almost anything goes there.
    “Blog” is for blogs… which IMO is something like long prose, chronological… doesn’t seem suitable (to me) for sharing a few random tips/ solutions one finds.

    Perhaps you’re right that tags are underutilized. Though in this case, I’m not sure that a single tag would fit the many kinds of tips/solutions one would like to share. Because there is no enforcing of a particular tag.