Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      122
      6 Votes
      122 Posts
      35k Views
      sevem47S
      @Coises said: I might be missing something. Do you find that it is not obvious enough in the document window itself when lines are hidden (the horizontal lines where the hidden lines are)? Thanks for your hint; I see, the mistake is on my side! I use a different background color and my eyes are getting older ;-) Therefore I did not see the lines between the text: My configuration vs. Default theme: [image: 1785264398025-b4c2960d-2d83-4c60-a13b-064ce8ffdd81-image.jpeg] / [image: 1785264414096-3749de5d-cf73-4ea2-ad28-54e459e8bf8d-image.jpeg] Now I know where to look. Good point. I will fix that — not necessarily in the very next release, but I will fix it. I know you have a lot of topics on your list that are much more urgent. For me it is a ‘nice to have’. Thanks for your help.
    • M

      Using Notepad++ to Organize Game Guides and Documentation

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      52 Views
      PeterJonesP
      moderator aside: I approved the above post after removing what was likely just a spam URL. I am doubtful that the OP actually intended it as anything but an excuse to drive traffic to their 3DS site. But the questions asked aren’t completely out of the realm of general interest for a Notepad++ forum, so I decided to sanitize the post and let it stay, in case it drives actual discussion. Changed the Topic Title to be more generic, to match what’s on-topic for this forum. @mohsin-raza , Those workflow steps all seem reasonable to do in Notepad++. Comparing different versions of articles before publishing. I definitely use the Compare++ plugin to compare files: if you’re using Git or SVN for version control, it even has the ability to do the equivalent of git-diff or svn-diff, without having to manually have two copies with different versions of the same file, so you can see how the file has changed since your last commit, which is quite useful. use Notepad++ for large documentation projects outside of software development. I mean, there are plenty of people who use Notepad++ for making websites. There are some users here who pester us with a gazillion questions on how to edit raw HTML with regex (even though regex isn’t the best tool, since HTML is too free-form for most regex to work effectively). And I use Notepad++ for editing the Markdown of the Notepad++ User Manual. But I don’t do much “fancy” outside of normal Notepad++ usage (with the occasional MarkdownViewer++ to preview the rendered version of the Markdown… though since we use hugo, I actually use hugo to render to HTML and view it in my browser instead, because of hugo’s special features that MarkdownViewer++ doens’t render properly) Do you use any plugins … Depending on the underlying language/filetype of the documentation: HTML ⇒ there are plenty of plugins helpful with HTML – just use Plugins Admin and type in HTML, and it will step through some. Though one of the most useful would be XML Tools, which can help with pretty-printing Markdown ⇒ there are multiple plugins for helping with Markdown: there are some “preview” tools which render your markdown into a panel inside the Notepad++ window, for example. Again, typing Markdown in the search bar in Plugins Admin will give you some ideas GitSCM ⇒ allows you to integrate Git version control actions inside the Notepad++ interface, so you don’t have to drop to the command line or using a git GUI in Windows Explorer custom themes Themes are just the color sets for the builtin languages. Everyone has different preferences as to what colors “look best” to their eyes. I don’t understand how you could think “custom themes” would help; would you care to explain/expound on that? Did you mean “custom User Defined Languages [UDL]”, which allows custom keyword-based syntax highlighting? Then, depending on what languages/format you are using for the text of the documentation, some might help. Notepad++ already ships with a Markdown UDL, but if you don’t like the colors that ship with N++, you can always edit the UDL to choose different colors. And, since it’s a UDL, if you don’t like the decisions that were used for how to apply keyword-based styling to something that’s more punctuation-based, you can play with alternatives. If you have an underlying language/format for your file that’s not found int he Languages list, you should consider looking at the UDL Collection repository, which collects user-submitted UDL, and many languages have one or more user-submitted UDL (and some have associated functionList and autoCompletion definitions). The CollectionInterface plugin (available thru Plugins Admin) can make it easier to install such a UDL (especially with the FL or AC additions) rather than manually trying to figure out where to put each of those files. But all-in-all, your post seems so generic and vague that I’m not convinced that you didn’t just use an AI with a prompt like “pretend I use [INSERT TEXT EDITOR NAME HERE] to edit my documentation, and write a post for me that adds a link to [WEBSITE URL AND NAME HERE] in something that they won’t mark as spam/off-topic”. If that’s what you did, you failed, because we didn’t include your spam link in your post. Please read the rules of this forum before posting more spam. If your future posts – to this topic, or any other topic in this forum – try to re-include links to your site, or other sites you might want to advertize, you will be banned. Other posts in this discussion which include links to sites not related to Notepad++ will also be blocked and their users banned. If this topic just devolves into an attempted honeypot, where the only posts are people trying to violate these restrictions, the topic will be locked.
    • Paolo LinxP

      Problem running a macro without any associated key combination

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      586 Views
      PeterJonesP
      I already made my debug info available in my first post in this topic, which clearly indicated that I’m using an installed x86 version of NPP. I am sorry I didn’t remember that from a week ago. And “multiple instances” can have different meanings to different people. Even if I had remembered you were using installed, that doesn’t mean that you weren’t also using a portable: not everyone would think to mention such a thing – they might not even think about it, when using their multiple installations/portables next to each other. (I have my daily as Installed, but I also have multiple active portables that use different configurations). I just needed to make sure, because different setups could have vastly different reasons for the symptoms you describe. I normally run NPP the first time after a restart via either its shortcut in my taskbar or the start menu. Any second instance is normally opened with command line options -multiInst -nosession (via AutoHotkey keyboard shortcut), and I always exit it before exiting the primary instance. In theory then, the validate from the main instance should get saved. After you validated, did you exit before running again and spawning multiple instances? Because Notepad++ doesn’t save the new copy of the config file (with the new validation HMAC code) until it exits. So if you ran the main, ran validate, then spawned new instances, the HMAC code might not have propagated to the new instances I don’t know whether N++ gives a copy of the current config structure from memory to the new process, or whether the new process is completely separate, in which case, it would have read the old version from the disk again – re-reading, since you are doing notepad++.exe -multiInst -nosession via AHK (ie, outside N++, instead of using the “Clone to New Instance” command from inside Notepad++), it would have no way of propagating that HMAC to the new instance, because it hasn’t written it to the config.xml yet, so when the new instance reads config.xml, it is out-of-date. A few hours ago, just before I posted my last reply, I was consistently able to replicate NPP’s demand that I re-validate when trying to run my macro. Now, I can’t. No idea why. I am wondering if you finally had a sequence where you did the validate, then exited so it saved the right HMAC, and now everything is settled. I hope so (and believe so). Stay tuned. If it comes back, I’ll be sure to make a note of the exact sequence and post again. Based on my experiments (below), which are 100% repeatable for me, now that the HMAC has been properly saved, it shouldn’t prompt you again until you manually edit the shortcuts file. My Steps to Confirm: create example.pyfrom Npp import notepad notepad.runMenuCommand("Macro", "Trim Trailing Space and Save") exit all Notepad++ use notepad.exe to edit config.xml and remove the line with name=“shortcutsXmlHMAC” (which causes it to be not-yet-validated), and save launch main copy of Notepad++ Run > validate shortcuts.xml open a new instance of N++ with -multiInst -nosession Plugins > PythonScript > scripts > example → it will pop up the shortcuts.xml file and the validation warning messagebox please note: this doesn’t require you to use the keyboard shortcut; just that you run a scrpt that tries to run a macro or run-menu command, as far as I can tell – my experiments have not been using an assigned keystroke to run the script. exit the second instance exit the first instance (which should save the config.xml with validated HMAC) launch main copy of Notepad++ open a new instance of N++ with -multiInst -nosession Plugins > PythonScript > scripts > example → it will not pop up the shortcuts.xml file or the validation warning messagebox, because it’s valid So, I guess the clarified version: if you are using multiple instances, close all intstances but one, look at shortcuts.xml to make sure all the macros and run-menu commands are as you expect them to be, then Run > validate shortcuts.xml, then exit Notepad++ to get it to save that. From now on, you shouldn’t need to validate again unless you intentionally manually edit shortcuts.xml. (Using Shortcut Mapper or saving new macros or run menu commands should not trigger a re-validate, because Notepad++ should update the HMAC when it changes the shortcuts.xml itself) update: PR 889 is adding a NOTE to that effect in the shortcuts.xml security section – you may have to refresh your browser to see it.
    • Kiichiro MatsushitaK

      How to change colors of highlights?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      2k Views
      M
      @PeterJones said: @Kiichiro-Matsushita, welcome to the Notepad++ Community. You said: I tried tinkering with the Style Configurator, to no avail… You don’t tell us which theme you are starting with. You don’t tell us what you tried in the Style Configurator. One would think if you really wanted help, you would give us more to work with. That said, I will give the following advice: How do I change those? Using Style Configurator, after you’ve set your theme, you can choose the Global Styles in the first column, and choose the Current Line Background settings (second column) to change the “you are on this line” highlight; for “you have selected this text”, you need to edit the Selected Text Color (again, second column). Please note for these two settings, Style Configurator only pays attention to Background Color – the foreground color and bold/italic/underline settings are ignored. … Good luck. I had the same issue, this answer worked! Appreciate your time & input