• Please Read This Before Posting

    Pinned Locked faq newbie
    1
    7 Votes
    1 Posts
    9k Views
    No one has replied
  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    28k Views
    Mike NewmanM
    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.
  • What is BUFFERENCODING.COOKIE ??

    11
    0 Votes
    11 Posts
    3k Views
    PeterJonesP
    because it appears those actually return from the enum UniMode, which is enum UniMode {uni8Bit=0, uniUTF8=1, uni16BE=2, uni16LE=3, uniCookie=4, uni7Bit=5, uni16BE_NoBOM=6, uni16LE_NoBOM=7, uniEnd}; according to the source code. In N++ commit 8149f72 in v8.8.8 (Nov 2025), uniCookie has been renamed as uniUTF8_NoBOM inside the N++ source. Thus, I just put in PythonScript Issue #421 to request that there’s a BUFFERENCODING.UTF8_NOBOM, either as replacement or alias of the old meaninglessly-named BUFFERENCODING.COOKIE … I don’t know if it will happen, but at least the request is in. :-)
  • Bug: Empty file with UTF-8 encoding saved as ANSI

    5
    1 Votes
    5 Posts
    251 Views
    Alan KilbornA
    @Claudia-Svenson said: Possibly it was introduced only recently Nope. But it isn’t exactly obvious what its function is, based only upon the UI text.
  • 0 Votes
    13 Posts
    1k Views
    dr ramaanandD
    @guy038 Merci beaucoup!
  • Unable to open files within an opened file

    3
    3
    0 Votes
    3 Posts
    761 Views
    R
    @PeterJones Perfect thank you very much!
  • 0 Votes
    15 Posts
    3k Views
    mpheathM
    The Python script I posted is expected to handle single byte errors from UTF8 decoding. Asian languages can be 2 byte for ANSI and so the script may need to get the following byte too to decode both bytes properly. Probably will not find recovery tools and the like that will fix mixed encoding errors as the solution in some cases might be worse then the problem though in this case tested OK. Once saved, then there might be no going back and so creating a backup before the operation would be wise. Inspect the results to confirm is OK.
  • When Is the Next Update?

    bug with 8.9.6.4 html
    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP
    @Sylvester-Bullitt , Release Candidate is available. You probably want to test this version, and report any continued problems with the Open File feature ASAP.
  • Need help with find and replace using wildcards and in multiple files

    11
    1 Votes
    11 Posts
    2k Views
    P
    @PeterJones Worked perfectly, thank you.
  • Latex in markdown not working in npp 8.9.6.4 (64 bits)

    2
    0 Votes
    2 Posts
    918 Views
    PeterJonesP
    @Mario-Lemelin , everything work fine except for the equations in latex Not all Markdown processors understand LaTeX. (For example, the Markdown processor for this forum does not.) It appears that MarkdownViewer++ does not have that feature (which doesn’t surprise me). I visited this site (https://github.com/npp-plugins/plugintemplate) but was unablew to find help. That site is just the repository for the C++ template for creating a plugin. It’s not going to have information on how to use any specific plugin. The home for MarkdownViewer++ is https://github.com/nea/MarkdownViewerPlusPlus , so that’s where you’d have to go. But the author has recently set the repo to “read only”, indicating that they are unwilling to support that plugin any more. However, there are other Markdown plugins available from Plugins Admin. I’ve never used them, but two I see include NppMarkdownPanel @ https://github.com/mohzy83/NppMarkdownPanel AnotherMarkdown @ https://github.com/ezyuzin/NppAnotherMarkdown this appears to be a fork of NppMarkdownPanel with a different feature set. when I look at its README, it mentions the ability to use katex for math (I think it’s an option that you’d have to enable by editing a config file for the plugin; you’d want to experiment and read the documentation for that plugin to be sure) – and a quick look at the katex description implies to me that it’s essentially LaTeX compatible syntax. You can install either of those from the Plugins Admin interface. It may be that one of those will do what you need (my bet would be on the second as your best chance).
  • Recording Macro including URL Encode (RFC1738)

    2
    0 Votes
    2 Posts
    738 Views
    PeterJonesP
    @blueicehaller , Plugin commands, like Plugins > MIME Tools > URL Encode cannot be recorded in a macro. However, we have a sub-FAQ: “Using Plugin, Run-menu and Macro Commands in Macros” which explains how you can manually edit a recorded macro to include such a command (noting that caveat that if you add or remove plugins, you might have to update your macro to refer to the new menuCmdID for the plugin command).
  • How do I reset back to the default Dark Mode style settings?

    3
    0 Votes
    3 Posts
    977 Views
    Lycan ThropeL
    @Howard-Brown @peterjones has given you the necessary information to get back the default DarkMode settings, so you should learn from this issue and do what I did, and make your own DarkMode settings by copying that file, and giving it a different name. I called mine MyDarkModeDefault to avoid the confusion, and played with it to my hearts content. Doing this trick, even with your new default version, you can make another copy and continue to fine tune what you need to, without damaging the default, or your own new default versions. Call it MyExperimentalDarkMode, and have fun without worrying. As @peterjones and many of us around here always say, “back up what you don’t want to lose or recreate” - though that is paraphrasing. :-)
  • NPPexec Tidy won't open html file.

    3
    0 Votes
    3 Posts
    965 Views
    Jon FlemingJ
    Thanks, your script works perfectly.
  • Unicode 'ÿ' , problem converting to Hex 'FF'

    39
    1
    1 Votes
    39 Posts
    18k Views
    Lance MarchettiL
    @PeterJones Great. Thanks
  • userDefinedLang IP address parsing

    8
    0 Votes
    8 Posts
    4k Views
    L
    Hello, Trying to do IPv6 in Syntax Highlighting for FortiOS. As I wanted to have a different font color for the dots and the colons in the IP address, I use those as operators, and have 0-9 A-F (Uppercase A-F) as keywords set to prefix. This only works if you’re building configs though, and will go back to default if there are lower case a-f hex values if you do a copy/paste type of thing in NPP. I chose to opt for uppercase A-F since all FortiOS words are case sensitive and must be lowercase(Not strings/objects mind you). You can, while configuring the device, set IPv6 addresses with these uppercase hex values. Note: You can specify objects without string delimiters, but I find that to be bad form. And if you include grep filtering in NPP, these keywords could be exposed. Keywords List Group Prefix Mode: Checked 0 1 2 3 4 5 6 7 8 9 A B C D E F Operators 1 . : /
  • Locking file from other editing while opened in Notepad++

    11
    0 Votes
    11 Posts
    13k Views
    shouldersS
    I requested here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/17508 I then made a plugin here: https://github.com/shoulders/npp-exclusive-file-lock Thanks
  • unsaved change star symbol

    2
    1
    0 Votes
    2 Posts
    919 Views
    X
    @CodeBiene said: MenuIcons (2.0.7) This is most likely not a N++ issue but that plugin one: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16798 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16867 @CodeBiene said: files are prefixed with a star “*” This is not a N++ feature but that plugin one. Seems it causes more problems than benefits: https://github.com/francostellari/NppPlugins/issues/71#issuecomment-4321741836
  • How do I find some text but skip some other slightly different text?

    23
    0 Votes
    23 Posts
    9k Views
    dr ramaanandD
    @Scott-Nielson @guy038 has given a good explanation of the (*SKIP)(*FAIL) method at https://community.notepad-plus-plus.org/topic/26812/generic-regex-how-to-use-the-couple-of-backtracking-control-verbs-skip-fail-or-skip-f-in-regexes/5 - in fact I recommend everyone who lands on this page after searching online, to read that explanation and understand it!
  • Config file - Not Seen

    2
    1
    0 Votes
    2 Posts
    912 Views
    PeterJonesP
    @Kendall-DeMott , The installer shouldn’t lose your settings – it tries hard to not overwrite – but not impossible. But after it’s installed, it shouldn’t lose all the settings. One guess is that the config.xml file doesn’t actually have normal write permissions, so when you make all the changes inside Notepad++, it tries to save the settings, but cannot – I would have thought it would prompt you for that, but maybe not. Use Explorer to go to %AppData%\Notepad++\, and right click on config.xml, and check the permissions, to make sure your normal user has write permission to the file; and also make sure you aren’t running Notepad++ As Admin – it would have Administrator in the title bar, and list it as Admin Mode: ON in the ? > Debug Info – because maybe your system is set up so Admin cannot write to your AppData directory. Another guess is that you have two copies of Notepad++, and when your settings are changing, it is because it’s using a different copy of Notepad++, pointing to a different config location. Use Windows search to look for notepad++.exe, and see if it finds more than one copy. (If you have multiple drives, make sure you check them all.) I thought or was told that the the app’s preferences etc. loaded from the Session file? Nope. Settings are stored in config.xml. The list of open files is stored in session.xml I can’t remember where you can change the setting or edit a line so more items are remembered in the Find What window, can you please tell me how to set it to (12) It’s a Preference for Advanced Users, which can only be changed by editing nbMaxFindHistoryFind and similar attributes, as described in the User Manual. When manually editing config.xml, you have to follow the steps in the Editing Config Files section, reading about the differences in how you have to treat config.xml because of its unique status in Notepad++'s inner workings.
  • Confusing/Frustrating folding behavior

    8
    0 Votes
    8 Posts
    2k Views
    Thorin SchmidtT
    @mpheath Thanks for this suggestion. It seems to be the simplest solution. A bit of an overkill since it would only be needed for my Python stuff, yet I like keyboard shortcuts, growing up on DOS and all. Thank You! I really appreciate the help. :)