• Please Read This Before Posting

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

    Pinned
    28
    2 Votes
    28 Posts
    24k 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.
  • Recording Macro including URL Encode (RFC1738)

    2
    0 Votes
    2 Posts
    8 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).
  • 0 Votes
    5 Posts
    208 Views
    CoisesC
    @Claudia-Svenson said: Assume I started with an empty file an ANSI encoding. I write some text. Then (later) I copied some UTF-8 encoded text from browser webpage or from other document into this ANSI file. Now this file contains two types of text: One part is ANSI encoded the other UTF-8 encoded. No matter if I switch the file encoding or if I convert the text a part of the file content does not match the encoding. Have you actually tried this? Can you show a minimal demonstration? I can’t reproduce it. When you paste text from the Windows clipboard into a document, the text should be converted right then to match the current encoding Scintilla (the control used to display documents in Notepad++) is using. (That encoding is not always the same as the file encoding that will be saved; it will always be either ANSI, if the file encoding is ANSI, or else UTF-8; anything else is converted when reading or writing the file.) There cannot be two different encodings in the same document window in Notepad++. Does the text appear wrong in Notepad++ when you paste it? Or are you saying that it looks good when you paste it, but when you reload the file the text you pasted is corrupted? If the text appears wrong when you paste, it is probably a problem with the application from which you are copying the text. If it is a common application that some of us might have, please tell us and give an example of how to reproduce the problem; but I suspect it will be out of Notepad++’s control. If the text appears good when you paste it but is corrupt when you reload, then you are probably pasting characters that are not in the codepage you are using. That can happen if you are using a named legacy codepage (not ANSI, but something like ISO-8859-15), because internally Notepad++ uses UTF-8 when you have anything other than ANSI. The pasted characters look fine, because they exist in UTF-8, but they can’t be converted to the codepage when you save if they aren’t in the codepage.
  • How do I reset back to the default Dark Mode style settings?

    3
    0 Votes
    3 Posts
    85 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
    110 Views
    Jon FlemingJ
    Thanks, your script works perfectly.
  • Latex in markdown not working in npp 8.9.6.4 (64 bits)

    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • Unicode 'ÿ' , problem converting to Hex 'FF'

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

    8
    0 Votes
    8 Posts
    3k 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
    11k 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
    331 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
    5k 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
    323 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
    901 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. :)
  • Can't make a keyboard macro for a shortcut in Notepad++ v6.9.2

    4
    0 Votes
    4 Posts
    450 Views
    guy038G
    Hello, @decrepit-old-geekoid, @peterjones and All, It just so happens that I still have the docMonitor.2.2.zip archive on my old Win XP computer. So, on the last XP version of N++ ( v7.9.2 ), within a plugin directory named docMonitor, I installed the docMonitor.unicode.dll that I renamed docMonitor.dll Notepad++ opened normally and the plugin was here with the single option Plugins > Document Monitor > Start to monitor. Before activating this plugin, I ran, in a CMD command prompt window, the command : notepad++ -nosession Test.txt Then, the DOS command : echo ABCDE >> test.txt I verified that I got, within N++, the usual dialog : This file has been modified by an other program. Do you want to reload it? Clicking on the Yes button, it added, as expected, the line ABCDE to the empty Test.txt file => OK As soon as I choosed the option Plugins > Document Monitor > Start to monitor, any subsequent echo command uodated silently the Test.txt file, as well => OK Then I ran the option Plugins > Document Monitor > Stop monitoring. I thought that it would again show the dialog to reload the file, but subsequent echo commands still updated silently the file !? I said to myself : May be it’s worth to stop/start the computer again. However, the problem remained identical, afterwards ?? Then, I desintalled the DocMonitor plugin completely, including the docMonitor.ini file under config and restarted my Win XP computer. But, again, any echo command still updated the Test.txt file silently !!?? At that point, I didn’t understand at all ! Thus, I decided to pull out the stops and reinstall a clean version of a portable N++ v.7.9.2 in a separate directory ! By default, this new version correctly showed the dialog This file has been modified by an other program. after a command : echo bla bla blah >> test.txt Then, I had the idea to compare all the N++ preferences between my normal intallation and this new version and…, surprise : there were some differences in the MISC. preferences : The file status Auto-detection section shows the Enable for all opened files option and the Update silently and Scroll to the last line after update options were checked, in my normal intallation The file status Auto-detection section shows the Enable option and the Update silently and Scroll to the last line after update versions were unchecked, in the new N++ version So, in the new version, I re-installed the Doc Monitor plugin and even after running the Plugins > Document Monitor > Start to monitor option, the MISC. preferences for file status were still the default ones ! Howewer, if you close and re-start N++ immediately, you see, this time, the Enable for all opened files option and the two box options checked, in the MISC. preferences ! So, apparently, at least , with this 2.2.0.0 version, Don simply activates, with his plugin, these specific N++ options which updates silently any opened file ! Best Regards, guy038
  • Fanuc macro B

    3
    0 Votes
    3 Posts
    344 Views
    PeterJonesP
    A GitHub user Poualedesmon just uploaded FANUC_KAREL_UDL to the collection. I don’t know if that was @darren-hoyland or someone else, but it’s now publicly available for download from the Collection, per the same instructions in the README as linked earlier.
  • v8.7 Search Results Missing

    18
    0 Votes
    18 Posts
    7k Views
    henriknorenH
    @xomx thanks a bunch
  • On selection - open file does not working

    5
    1 Votes
    5 Posts
    722 Views
    Václav HanzlikV
    @PeterJones Thank you very much.
  • How do I change the size of text. I don't know what I did

    5
    1
    0 Votes
    5 Posts
    978 Views
    PeterJonesP
    @rspeicher452 , If you’re always on that screen for that laptop, I would recommend changing Settings > Style Configurator > Language: Global Styles > Style: Default Style to use a bigger font size for the text, so that you don’t have to change the zoom. (The “zoom” feature was designed to be temporary, whereas setting the Default Style font size was designed as the perment way to set text size)
  • Snippets won't stay pinned to any side other than default

    4
    0 Votes
    4 Posts
    586 Views
    PeterJonesP
    @deleelee , As I said there, the plugin needs to be fixed and a new version released. It’s not a config file for the end user.