• -4 Votes
    3 Posts
    218 Views
    PeterJonesP

    Downvoted because there was a spam link on the comma between the C: and D: near the end.

    This is most likely pure AI fabrication, or at least human-made junk to justify the spam link.

    However, on the off-chance that AI or human derived their spam wrapper from some real report they found somewhere, I am leaving this ā€œreportā€ here, in case someone can replicate the ā€œfindingsā€.

    update:

    Notepad++ v8.6.4 (32-bit)
    …
    Plugins: Explorer 1.9.1, JSON Viewer 2.5

    N++ v8.6.4 was from Feb 2024, but Explorer 1.9.1 was from May 2020. I am dubious that a user would be updating Notepad++, but not the Explorer plugin, over that long of a timeframe.

    Also, as far as I can tell from the public releases, ā€œJSON Viewer 2.5ā€ will not be coming out for another few years (since it’s currently at 2.1.1, and was at 2.0.2 in 2022), so that’s a non-existent plugin version, and more evidence that this entire report is an hallucination.

  • 0 Votes
    4 Posts
    706 Views
    N

    @netoale-netoale This worked fairly well, thank you, but was picking up a few keywords i didn’t want [if, for, switch, …etc]. If you’re having a similar issue, i got Claude to improve it like so:

    <parser displayName="JavaScript" id ="javascript_function" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)" > <!-- <classRange>, ES6 "class" Syntax inspired of typescript : https://github.com/chai2010/notepadplus-typescript/blob/master/functionList.xml --> <classRange mainExpr="^\s*(export\s+)?(class|interface)\s+\w+\s*((extends|implements)\s+(\w|\s|,|\.|[^{])*)?\{" openSymbole = "\{" closeSymbole = "\}" displayMode="node"> <className> <nameExpr expr="(export\s+)?(class|interface)\s+\w+"/> <nameExpr expr="(class|interface)\s+\w+"/> <nameExpr expr="\s+\w+"/> <nameExpr expr="\w+"/> </className> <!-- Indent only support tab/2space/4space!!! --> <!-- tab/2space is best choice! --> <!-- regexp: ^(\t|[ ]{2,4}) --> <function mainExpr="(^(\t|[ ]{2,4})((static)\s+)+(?!(if|for|while|do|switch|try|catch|finally|return|break|continue|var|let|const|function|class|import|export|default|throw|delete|typeof|instanceof|in|new|this|super|true|false|null|undefined|async|await|yield|with|debugger|case|else|elseif|endif)\b)[A-Za-z_$][\w$]*\s*(\(|\=|:|\?))|(^(\t|[ ]{2,4})(?!(if|for|while|do|switch|try|catch|finally|return|break|continue|var|let|const|function|class|import|export|default|throw|delete|typeof|instanceof|in|new|this|super|true|false|null|undefined|async|await|yield|with|debugger|case|else|elseif|endif)\b)[A-Za-z_$][\w$]*\s*(\(|:|\=|\?))"> <functionName> <funcNameExpr expr="(^(\t|[ ]{2,4})((static)\s+)+(?!(if|for|while|do|switch|try|catch|finally|return|break|continue|var|let|const|function|class|import|export|default|throw|delete|typeof|instanceof|in|new|this|super|true|false|null|undefined|async|await|yield|with|debugger|case|else|elseif|endif)\b)[A-Za-z_$][\w$]*\s*(\(|\=|:|\?))|([A-Za-z_$][\w$]*\s*(\(|:|\=|\?))"/> <funcNameExpr expr="(\s+[A-Za-z_$][\w$]*\s*(\(|\=|:|\?))|([A-Za-z_$][\w$]*\s*(\(|:|\=|\?))"/> <funcNameExpr expr="(\s+[A-Za-z_$][\w$]*\s*(\(|\=|:|\?))|([A-Za-z_$][\w$]*)"/> <funcNameExpr expr="(\s+[A-Za-z_$][\w$]*)|([A-Za-z_$][\w$]*)"/> <funcNameExpr expr="[A-Za-z_$][\w$]*"/> </functionName> </function> </classRange> <!-- <classRange>, "prototype" syntax imported from :https://community.notepad-plus-plus.org/topic/8647/configure-function-list-to-show-javascript-class-functions-created-with-prototype --> <classRange mainExpr="^[\t ]*([_A-Za-z]?[\w_]*)(\.prototype)+[\s]+(=)+[\s]*\{" openSymbole = "\{" closeSymbole = "\}" displayMode="node" > <className> <nameExpr expr="[_A-Za-z]+[\w_]*"/> </className> <function mainExpr="^[\t ]*([_A-Za-z]?[\w_])+[\s]*+:+[\s]*+function+[\s]*\("> <functionName> <funcNameExpr expr="^[\t ]*([_A-Za-z]?[\w_]*)"/> </functionName> </function> </classRange> <!-- Original notepad++ functionlist --> <function mainExpr="((^|\s+|[;\}\.])([A-Za-z_$][\w$]*\.)*[A-Za-z_$][\w$]*\s*[=:]|^|[\s;\}]+)\s*function(\s+[A-Za-z_$][\w$]*)?\s*\([^\)\(]*\)[\n\s]*\{" > <functionName> <nameExpr expr="[A-Za-z_$][\w$]*\s*[=:]|[A-Za-z_$][\w$]*\s*\(" /> <nameExpr expr="[A-Za-z_$][\w$]*" /> </functionName> <className> <nameExpr expr="([A-Za-z_$][\w$]*\.)*[A-Za-z_$][\w$]*\." /> <nameExpr expr="([A-Za-z_$][\w$]*\.)*[A-Za-z_$][\w$]*" /> </className> </function> </parser>
  • 9 Votes
    37 Posts
    6k Views
    Lycan ThropeL

    @Coises said in Config Files Need Updating, Too:

    For what it’s worth, as the author of Controlled Auto-indent, I can guarantee it was the culprit. It could crash under other circumstances, too, having nothing to do with ConfigUpdater; I just hadn’t hit one of them, and if anyone else did before you, they didn’t report it.

    I appreciate that, and I’ll go ahead and download it and test it against the old and new versions of ConfigUpdater. I’ve already downloaded, but not installed the new version of CU yet.

    Update: It works fine under the old CU and the new CU. I tried it with CAI enabled and not enabled, and the CU ran through everything, so the crash condition from CAI appears to be gone. Glad I could help find that edge case, unknowingly. :-)

  • 0 Votes
    16 Posts
    1k Views
    DrakyemD

    @mpheath

    Hello. Thank you very much for this script, it works wonders! There are some misplaced lines (e.g. line 23 in one file corresponding to line 24 in the other one), but nothing that I can’t fix for the script to work within the entire file as it should.

  • Advertising on the official download page?

    General Discussion
    7
  • 0 Votes
    6 Posts
    5k Views
    SQLPythonProS

    To use the anaconda prompt and have the window stay open, just put a ā€œ-iā€ after the path to your python installation like this:
    C:\Users\brown\anaconda3\python.exe -i ā€œ$(FULL_CURRENT_PATH)ā€

  • These were my f**king ChatGPT!

    Humour
    8
    5 Votes
    8 Posts
    737 Views
    skinwalker009S

    Before I clean up, I’ll snap a pic of my ā€œlibraryā€ā€”three bookcases and a desk stacked with tech relics in a dim room, untouched by sunlight. It was my haven 26 years ago, my cockpit of cutting-edge gear. Now, it’s a tech museum I hope to revive. You’re right—those gadgets were our original ChatGPTs.

  • 0 Votes
    10 Posts
    720 Views
    Alan KilbornA

    The following is TL;DR…

    A bit ago, I had a need for a ā€œdirectory chooserā€ standard dialog to appear in one of my PythonScripts. I shared this need with the guru of all things Python (@Ekopalypse , although he will shrug off that moniker) and he graciously pursued adding code to support that in his Little Dialog Wrapper project.

    Because a directory-chooser is really just a specialized ā€œfile openā€ standard dialog, Eko also provided that capability – great. So now the library had file-open and dir-chooser capability. But…the glaring omission to complete the set was a ā€œfile saveā€ standard dialog. Well…of course I nudged Eko to write that part as well, but I think he simply saw no need for it and thus didn’t do it. And so of course I said I’d do it.

    But much time passed, and I didn’t do it, because I didn’t exactly have a burning need. I already had some script code I’d developed for file-save based on some ancient code called EasyDialogs. And wow, checking out that link right now, it is really ancient (circa 2007)! This approach worked, but the type of standard dialogs generated by EasyDialogs are really ā€œold schoolā€.

    So then along comes this thread (the one we’re talking in right now). The OP’s need is one that can be easily scripted…IF a nice file-save dialog could be generated.

    So, I got on the proverbial horse and added the file-save dialog code to Eko’s library (in the end not a big effort, since the earlier code provided a lot of inheritable stuff). It’s been ACCEPTED and now the library offers the full complement of file-open, file-save, and directory-chooser standard dialogs.

    Ok, so here’s a (PS3) script called FileSaveReplacement.py that meets the need proposed at the start of this thread. The script is run (somewhat obviously from its name) when you’d normally save a file (i.e., hint reassign Ctrl+s to run this script). If the tab being saved exists as a file in the file system, it’s simply saved as usual. But if the tab has never been saved, a file-save dialog appears and it is based in a fixed directory (as specified in the script by the dir_for_never_saved_files variable).

    # -*- coding: utf-8 -*- ######################################### # # FileSaveReplacement (FSR) # ######################################### # note: # This script was developed and tested under Python3 64-bit on unicode (non-ANSI) encoded data. # It may work as-is using Python2 and/or ANSI-encoded data and/or 32-bits, but that would be incidental. # references: # https://community.notepad-plus-plus.org/topic/26900/how-to-save-new-documents-always-in-d-data-and-not-in-most-recent-directory # for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript # for info on WinDialog (aka Little Dialog Wrapper), see # https://github.com/Ekopalypse/NppPythonScripts/tree/master/helper/WinDialog # https://community.notepad-plus-plus.org/topic/24389 #------------------------------------------------------------------------------- from Npp import * import os from WinDialog import * # "Little Dialog Wrapper" from WinDialog.com_dialogs import FOS #------------------------------------------------------------------------------- class FSR(object): def __init__(self): # config: dir_for_never_saved_files = r'd:\data' ext_for_never_saved_files = '.txt' # make this an empty string if the desire is to have no extension curr_filename = notepad.getCurrentFilename() if os.path.isfile(curr_filename) and ('\\' in curr_filename or '/' in curr_filename): notepad.menuCommand(MENUCOMMAND.FILE_SAVE) else: save_dlg = FileSaveDialog() save_dlg.setFolder(dir_for_never_saved_files) if '.' not in curr_filename: curr_filename += ext_for_never_saved_files save_dlg.setFileName(curr_filename) save_dlg.setFileTypes([['All files', '*.*'], ['Text Files', '*.txt']]) save_options = save_dlg.getOptions() save_options |= FOS.OVERWRITEPROMPT save_dlg.setOptions(save_options) result = save_dlg.show() if len(result) > 0: notepad.saveAs(result[0]) #------------------------------------------------------------------------------- if __name__ == '__main__': FSR()
  • 0 Votes
    7 Posts
    476 Views
    Lycan ThropeL

    @Neko_Kaioh said in Plugin/Script to clean up text noise?:

    Yeah, I used that one. Theres nothing on the file that I need to worry about, but it doesnt tell me anything I personally can use.

    "File Type: MSX Graph Saurus compressed image

    MIME Type: application/octet-stream;
    Suggested file extension(s): bin lha lzh exe class so dll img iso"

    So, if anyone reading this happens to know a program or two that I could try to view the file properly, I’d be very grateful.

    At best, you could use the Hex Editor plugin, however, from the information and this discussion so far, it is apparent that your abilities will be taxed, since you can’t tell when a file is binary or not, just by looking at it. If it’s like the file on the left that @PeterJones showed you, I noticed right away the first two letters in the file, PK, and to me that looks like a PKWare file, meaning it’s compressed at best, as matches your description of the file type that web site told you it was. That’s a compressed graphic file, meaning it’s encoded and at this point, I don’t see you having the skill set necessary to use a Hex Editor and be able to debug/decrypt a file.

    Your best bet it to use the file in an application that generated it, and you can do that on your own by using that ubiquitous tool, Google, and putting that file type in the search terms and follow all the links you can until you find a tool that you can use to open that file with so that it can be played, viewed or whatever it is that it is designed to do. As @Terry-R has suggested, we can’t help anymore than this.

  • 0 Votes
    2 Posts
    159 Views
    Alan KilbornA

    @Gordon-Goodfellow said:

    ALT+SHIFT+F,

    The default for Find in Files is Ctrl+Shift+f, not Alt+Shift+f.

    So is there a way of doing this over multiple folders

    Well, if the files are all in one parent ā€œtreeā€, just specify to top-level in the Directory box and checkmark the Include subfolders checkbox.

  • 0 Votes
    4 Posts
    292 Views
    Alan KilbornA

    @Terry-R said:

    PeterJones had this post, where he suggests making the change in a different way.

    Hmm, that post is about adding, not removing.
    If you try to remove via the GUI, you’ll find that the Default ext.: edit box is disabled, meaning you can’t change it.
    I suggest following the @Ekopalypse advice above.

  • 0 Votes
    2 Posts
    156 Views
    Terry RT

    @d-wright

    I presume you are wanting to do things like right-click on files and open with Notepad++ instead of Notepad.

    Details are in the online manual, referenced from the ? menu option, then Notepad++ online user manual.

    The actual section is here.

    Terry

  • 0 Votes
    8 Posts
    546 Views
    PeterJonesP

    @Рома-Дмирнов ,

    When I followed @mkupper’s suggestion of searching the internet for your filename, I was able to see that the name wallet.json is often used for the storing secrets or backups for things like banking apps or for backing up your blockchain wallets – and that the latter often have encryption mechanisms built into their apps for encoding/decoding (because you really don’t want your blockchain secret key to be visible to anyone with a text editor), so it wouldn’t surprise me if the former kind of app did something similar. You should read the documentation for whatever app/blockchain you are using, to see how to read/decrypt those files. But in general, it’s doubtful that the intention is for them to ever be human-readable. (And, IMO, they should not be abusing the JSON file extension by claiming their files are JSON if they are, in fact, encrypted and not plain-text JSON; but this parenthetical is just my opinion.)

    And if you are trying to get us to help you decrypt someone else’s online wallet, please understand: doing so, or us helping you do so, is highly illegal in all jurisdictions I have ever heard of, and immoral no matter what jurisdiction you are in. If instructions were ever posted here on how to help someone break into an encrypted wallet, they would be deleted/purged immediately, and the person posting those instructions would be banned permanently from this Forum.

  • 1 Votes
    2 Posts
    161 Views
    L

    @Arthur-Hodgett Notepad++ does not have a default setting that automatically converts NBSP to normal spaces on paste. If this behavior started suddenly, consider if any plugins or external clipboard managers might be interfering?
    You likely have not changed a Notepad++ setting. The issue is probably due to clipboard handling or how OpenOffice copies NBSP to the clipboard. ? As in my screenshot example try dragging the highlighted NBSP over to Notepad++ and see if it works.
    nbsp.gif

  • About the N++ v8.8.1 release...

    General Discussion
    2
    2 Votes
    2 Posts
    328 Views
    L

    @guy038 Excellent! Thanks for the lists…

    By the way, after months of trying all sorts of tricks to successfully encode the Ćæ character to Hex in a UTF-8 encoded page, I realized that I had to initiate a Windows-1252 page first. And then it successfully converted the PNG to Hex. lol.
    The NUL bytes (\x00) were problematic as well because unless they get loaded into a raw binary state, they usually get converted to spaces (20) . So I get it now. ITS A TEXT EDITOR! … but at least Windows-1252 gives me a work-around for bytes 0x00–0xFF
    And then of course there’s Base64 to save the day!

    Lastly, I copy and paste a lot of binary content , so thanks for IDM_EDIT_COPY_BINARY 42048

    Cheers
    Lance

  • Hash errors installing Analyse plugin

    Notepad++ & Plugin Development
    2
    0 Votes
    2 Posts
    144 Views
    mkupperM

    @D-V, please post your Notepad++ debug info. I tested installing the Analyse plugin and it installed without any errors on Notepad++ v8.8.1 (64-bit) and also Notepad++ v8.8.1 (32-bit).

    You get the debug info from Notepad++'s ? / Debug Info ... menu.

    To post your debug info here in the community forums use </> on the forum’s menu bar and then replace the code_text that </> generates with the debug info.

  • 0 Votes
    4 Posts
    296 Views
    PeterJonesP

    @Ron-Zarnick said in Selection of Appropriate NetPad++ and Plug-In Installation:

    I downloaded and installed the current version as you suggested. … However, I have not found a method to access either one as nothing appears on my desktop for Notepad++.

    If you ran the Notepad++ installer after you downloaded it, then it should be installed. I thought it would put an icon on your Desktop (but it’s been a while since the last time I installed it on a new computer, so maybe it doesn’t do that, or maybe you were able to tell it to not do that). But even if it’s not on your Desktop, it should be available in your Windows Start Menu. [*] You can run it from there. Or right-click on a file and choose Edit with Notepad++. Once you run it, you can pin it to your task bar.

    If it’s not anywhere in your Start Menu, then I don’t think you actually ran the installer after downloading it. Go to your browser’s Downloads directory, and run the installer from there.

    [*: In Windows 11, it might show up on the main part of the Start Menu, since it’s a new/recently-installed file. If not, click on All in the Start Menu, then scroll down to Notepad++ in the N section. You can Right Click and Pin to Start to get the Notepad++ icon to stay in the main Start Menu area.]

    I also downloaded the offline user manual. … I am guessing the offline manual can be accessed only through Notepad++

    Nope. The offline user manual is a zipfile (nppUserManual.zip) containing HTML. You unzip it into whatever directory you want, then open the index.html with your favorite browser. It is not integrated with Notepad++ in any way. In Notepad++, the ? menu has a Notepad++ Online User Manual link which goes to the online webpage, but since it has no clue where you unzipped the offline user manual (or even if you have downloaded and unzipped it), and since Notepad++ has no integrated HTML renderer, it doesn’t integrate with it. (You could, of course, use Notepad++ to look at the HTML source of the offline user manual, if you were so inclined, but it wouldn’t be like looking at a webpage in your browser.)

  • verbesserungsvorschlag

    General Discussion
    2
    0 Votes
    2 Posts
    170 Views
    PeterJonesP

    @Alexander-Huckel ,

    Sorry, I am not sure about the automatic translation of your question: do you mean auto-correction, where it fixes spelling? Or auto-completion, where it helps you type programming keywords or other terms already found in your document?

    The latter is native to the app, described https://npp-user-manual.org/docs/auto-completion/ in the manual , and controlled by the settings described https://npp-user-manual.org/docs/preferences/#auto-completion

    Spelling correction is not implemented natively in Notepad++, but the DSpellCheck plugin is highly recommended for doing spell check and suggesting corrections.

  • 0 Votes
    18 Posts
    4k Views
    E

    I had the same issue but didn’t investigate the involvement of plugins. The issue appeared after changing the Dark Mode to ā€œFollow Windowsā€.

    After switching the preference back and forth and restarted Notepad++, the issue was fixed.
    Steps: Settings > Preferences > Dark Mode > Light mode / Dark mode / Follow Windows > Restart Notepad++

  • How to disable the suggestions

    General Discussion
    4
    0 Votes
    4 Posts
    315 Views
    Lycan ThropeL

    @Sergio-Bonfiglio ,
    Sorry, don’t have the time to research and provide an answer that is obvious after reading the documentation.