• Importing a picture file in Notepad++

    2
    0 Votes
    2 Posts
    176 Views
  • Finding a value in one line and prepending it to the next line

    3
    0 Votes
    3 Posts
    176 Views
    MaximillianMM

    @Coises said in Finding a value in one line and prepending it to the next line:

    (00:05:[^\r\n]+[\r\n]+)

    Thanks so much!

  • Poor Man's T-SQL Formatter compatibility issue

    5
    0 Votes
    5 Posts
    5k Views
    PeterJonesP

    @Thomas-Korosa said in Poor Man's T-SQL Formatter compatibility issue:

    Can anybody please remove that plugin from the supported list? It’s basically malware at this point!

    Not from this Forum, we cannot; here, we are just fellow users. There are two ways that such a request would have a chance: either go to the main application issue list or maybe the Plugin List repo , and create a request. The two ways I would guess they might take care of it: either in the application itself, they could trigger the logic that would move it to the “disabled” subfolder, or they could just remove it from the Plugin List.

    “remove this plugin from np++”

    Unfortunately, for whatever reason, the author has never gotten “remove a plugin” to work as reliably as “install a plugin”

    It’s not listed in plugins or in the folder,

    I’d be really surprised if it’s not listed in the folder. Could you share your ?-menu’s Debug Info, and a recursive directory listing of c:\program files\notepad++\ (or wherever Notepad++ is installed) – if you do that, we can tell you where to go to delete the plugin.

    tryinf to add or remove it does not change anything.

    This statement seems to contradict your statement that it’s not listed in Plugins Admin, because you cannot “try to remove it” if it’s not there. But maybe I’ve misunderstood something.

    And if the plugin really is gone from the Notepad++ hierarchy, then whatever is triggering the .NET request is somewhere other than the Notepad++ hierarchy. Maybe that plugin installed some component somewhere else. In general, that’s not considered “polite” of plugins, but that doesn’t mean they cannot, especially if they need an external executable to be able to perform their function. I don’t remember the details of my experiments from three years ago, but if I had noticed it install an executable somewhere else, I think I would have noticed it.

    It seems I will have to do a complete reinstall of notepad++ to get rid of this thing.

    If such a thing worked, then it would have been equally as effective to manually delete its folder; and if there is some external trigger that it’s set off, re-installing Notepad++ won’t work. I highly recommend sharing the info I requested a few paragraphs up in this post before trying to fully re-install.

  • How to start Notepad++ with a clean slate?

    3
    0 Votes
    3 Posts
    257 Views
    M

    @Coises

    Brilliant. I don’t know how I missed that.

    Many thanks.

    Mike

  • how to automatically make a numbered list

    4
    0 Votes
    4 Posts
    1k Views
    Ibraheem raadI

    @PeterJones ok, thx for clearing things up

  • Diff attributes new line to the wrong line.

    3
    0 Votes
    3 Posts
    181 Views
    Alan KilbornA

    @mkupper said:

    I’ll need to think about Notepad++'s result and why the author of Notepad+++ did not mark both lines as modified.

    You’ll probably want to think about why the authors of Scintilla did what they did, instead.

    IMO this (the whole topic) may not be worth a lot of pondering.

    I positioned the text cursor or caret in the middle of line of text and pressed Enter which split the line. Notepad++ marked the first part of the line as “modified” but not the latter part of the line that is now below the first part.

    One (of probably several) rationalizations for this:

    the original line is marked modified as something (line-ending) was inserted into it the inserted line is “entirely new” and hasn’t been modified yet
  • Script issue not showing in Notepad++

    2
    0 Votes
    2 Posts
    169 Views
    PeterJonesP

    @Dr-Sylvain-J-R-Garceau-Bergeron ,

    I am going to assume that you don’t actually type RUN $(FULL_CURRENT_PATH) into the Run dialog, because that’s obviously not what you’d type at a command line to get it to work – because python is the name of the interpreter, not run …

    When I do Run > Run… > python "$(FULL_CURRENT_PATH)" , it does exactly what I’d expect with your code: it opens the cmd.exe window, prompts for the inputs, then prompts to press any key to continue, then closes after it has cleared the screen.

    (Note: I use quotes around the $(FULL_CURRENT_PATH) so that the whole path will be passed to python, even if there is a space somewhere in the directory or filename)

  • Percentage Calculator

    5
    2 Votes
    5 Posts
    427 Views
    CoisesC

    @Alan-Kilborn said in Percentage Calculator:

    Can this be tied to a shortcut keycombo?

    Not really, since it’s a dialog-based function; but the dialog is non-modal, so you can leave it open while working. I suppose it would be possible to use the dialog accelerator keys while the dialog retains focus, but that would be more clumsy than just using the mouse, I think.

    The PythonScript solution you suggested is probably superior if you want to manually select instances to convert rather than do a batch, either by column or by regular expression.

    Can the number of decimal digits be controlled?

    Yes. That’s described in the help for Formulas. The short version is that you enter it like this:
    (?=format:formula)
    where the format gives the minimum number of integer digits, and if decimals are wanted, a decimal point and the number of decimal places to be shown. Specifics are given in the help, but as examples, you could use:
    (?=6:reg(1)*.9)
    if you wanted leading zeros to make a minimum of six digits, and no decimals; or:
    (?=2.3:reg(1)*.9)
    if you wanted always at least two digits to the left of the decimal point and exactly three digits to the right; or:
    (?=0.-4:reg(1)*.9)
    if you wanted up to four digits after the decimal point but with trailing zeros suppressed, no decimal point if there are no non-zero digits after the decimal point, and no zero before the decimal point when the integer portion is zero and the decimal portion is not zero.

    The default when using just (?=formula) is (?=1.-6:formula), meaning up to six decimals, suppress trailing zeros, suppress decimal separator if nothing follows, no leading zeros except that at least one digit is required before the decimal point, even if it is a zero.

  • I need to reach the administrator forum please

    2
    0 Votes
    2 Posts
    145 Views
    PeterJonesP

    @Fire-Panda ,

    I’ve sent you a private message. Feel free to reply there with details of what help you need.

  • Help: recover last save

    2
    0 Votes
    2 Posts
    166 Views
    PeterJonesP

    @Luca-Fonte ,

    Unfortunately, it’s likely lost – when a computer loses power, it doesn’t give applications a chance to do their “safe shutdown” routine, and Notepad++ might not have been able to finalize what it was trying to do when the computer lost power. However, our save/backup FAQ does have a section on “my unsaved files are missing” – you can try the suggestions in that section, but understand that there might not be anything we or Notepad++ can do to recover your data. As a result, I highly recommend you read and understand that whole FAQ, so that you can help yourself prevent such data loss in the future.

  • ComparePlus Plugin Unavailable

    6
    0 Votes
    6 Posts
    576 Views
    Brian FlickB

    @pnedev & @mpheath thanks for confirming what version I will need for the NPP version I’m allowed to have installed. I hadn’t seen the info in the current plugin list, and @mkupper I didn’t see a pop-up when I started NPP. But now I’m going to try the portable version of NPP that I completely forgot was an option, and see if it will run on my locked down laptop.
    Thanks all for the quick responses.

  • How to use PythonScript plugin ?

    2
    0 Votes
    2 Posts
    167 Views
  • Run Only Selected Text with Python?

    4
    0 Votes
    4 Posts
    268 Views
    PeterJonesP

    @chigkim ,

    Then you need to learn how to run python code from a command-line argument instead of from a script. That’s a python question, not a Notepad++ question.

    The Notepad++ specific part of your question is how to access the selection in an NppExec script (or Run command), and you now have that information.

    Though I’ll thow you a fish: if you can figure out how to use Notepad++'s default plugins, then cHl0aG9uIC1jICJwcmludCgkKENVUlJFTlRfV09SRCkpIg can be easily decoded to hand you the answer. But any further questions about how to use python.exe are off topic here.

  • remove notepad starter entirely

    10
    0 Votes
    10 Posts
    1k Views
    kiroizo oscarK

    @bo-reddude said in remove notepad starter entirely:

    Double clicking on txt file opens notepad++ instead of notepad. I only use notepad++ for tradingview related coding and a few others, and this has been a big annoyance for me.

    This started with the latest update, I think? I don’t remember allowing this change to occur on my computer. And I ran the batch file notepad starter github posted, but it did nothing. Changing the file association within the notepad++ is not allowed and is greyed out with no way to edit it. Uninstalling the notepad starter plugin using plugin admin does nothing.

    Setting the files association by right clicking in windows and using “always use this app for this file” doesn’t work either.

    This is the worst update ever.

    What’s the solution to getting back to where it was. I just want the file association for the notepad++ to remain to only those extensions that I made up (*.pine for pine script). And I want the *txt to be associated with the windows notepad.

    Faced this this week after I had too many plug-ins working and too many files open in notepad++, it was taking too long to open.
    Uninstalled the plug in, deleted its .exe and just used wintools to clean its remnants from the registry.

  • 0 Votes
    2 Posts
    127 Views
    Travis Lee Bailey Moscow American Трэвис Ли БейлиT

    @Travis-Lee-Bailey-Moscow-American-Трэвис-Ли-Бейли

    I SOLVED IT:

    Guide:
    RegEx Cheat Sheet for Notepad++

    Using Regular expression I typed in first: [0-9][0-9]:[0-9][0-9]

    Then: [0-9]:[0-9][0-9]

    Leaving the replace, blank.

    Which replaced all of the numbers with nothing.

    I then typed in \R which deleted all of the paragraph marks

  • Line return

    4
    0 Votes
    4 Posts
    450 Views
    mkupperM

    @Sylvain-Jean, is this a Notepad++ question or a regular expression question? This forum’s focus is supporting the Notepad++ editor, and at times people have questions about Notepad++'s search/replace feature.

    If you are using using Notepad++ then you may be interested in the Generic Regex: Replacing in a specific zone of text article.

    However, I personally don’t think what you want can be done in a single search replace as you want to do several things.

    You want search/replace the string <property name="ServerLoginConfirmationText" value=" with nothing. You want to keep the string For in game information, be please to ask question to ingame admin You want to replace the comma-space that is after admin at the end of the previous string with a comma-newline. You then want to replace the spaces that follow comma or semicolon with a newline up until the " /> You want to replace the " /> with nothing.

    Before proceeding further, I suspect you should think more carefully about what you are asking for. That’s because while it can be done in two steps they are are rather specific to the example data you had provided:

    Search: (?-i)(?:<property name="ServerLoginConfirmationText" value="|" />)
    Replace: (nothing)

    The string is now: For in game information, be please to ask question to ingame admin, those are; XXXXX, YYYY, ZZZZZ and so we then deal with that using:

    Search: (?-is)(?-i:For in game information, be please to ask question to ingame admin|(?!\A)\G).*?\K(?-i:(?<=[,;])\x20)
    Replace: \r\n

    The latter expression is straight from the article I linked to above using (?-s)(?-i:BSR|(?!\A)\G).*?\K(?-i:FR) where

    BSR is For in game information, be please to ask question to ingame admin FR is (?<=[,;])\x20

    The BSR is longer than you’d think as you wanted to preserve the comma-space in that string.

  • Extracting multiple rows from text file based on a header row

    5
    0 Votes
    5 Posts
    213 Views
    Ross BrownR

    @Alan-Kilborn said in Extracting multiple rows from text file based on a header row:

    (?-i)(?-s)^.+?\R^AAA A {3}AA(?s).*?(?=^AAA|\z)

    Amazing, thanks! This is a real help

    I will learn it at some point, just need to find the time to invest in myself so I can see the benefits.

  • Notepad++ open in new instance because I use multiple desktops

    4
    0 Votes
    4 Posts
    6k Views
    Aryan FirouzianA

    One silly solution would be to drag a tab out off the notepad++ window, and then drag it to other desktop. That way you have two different notepad++ instances in different desktops

  • User defined language to highlight different parts of a line

    2
    0 Votes
    2 Posts
    159 Views
    Alan KilbornA

    @AndrewCliffordOrica said in User defined language to highlight different parts of a line:

    I just want different background colours

    You can’t reasonably do what you want to the background coloring.
    But you can do it, with a plugin, to the foreground coloring, see EnhanceAnyLexer.

  • Regex - Extract range of XYZ coordinates

    3
    0 Votes
    3 Posts
    252 Views
    DrBubblesD

    @Mark-Olson Thanks for your response, appreciate it! I’ll look into other options then. I can actually open the file in Notepad++ but it sure takes a while to load.

    Anyway, thanks again!