• 0 Votes
    2 Posts
    186 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).
  • 0 Votes
    2 Posts
    30 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).
  • Translate plugin

    Notepad++ & Plugin Development
    22
    0 Votes
    22 Posts
    38k Views
    J
    Thank you again for your help.
  • 0 Votes
    5 Posts
    212 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.
  • 0 Votes
    3 Posts
    89 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. :-)
  • 0 Votes
    3 Posts
    111 Views
    Jon FlemingJ
    Thanks, your script works perfectly.
  • Ctrl-J (join lines) replaces LF with space

    General Discussion
    8
    0 Votes
    8 Posts
    308 Views
    guy038G
    Hi, @dougk.az, @peterjones and All, Oh, yes, Peter, you’re perfectly right ! But I must be a little tired from this heat wave. Since June 22, in the room where my desk is, even with a fan, the temperature has usually been between 29 °C and 30.5 °C. It’s awful ! BR guy038 Oh ! Now, I also realized that @dougk.az never spoke about the form feed ( FF ) characters, of code \x0C but spoke about the line feed ( LF ) chars, of code \x0A As I said above : really tired by heat !!!
  • Print Quality TERRIBLE & Non very useful

    General Discussion
    7
    0 Votes
    7 Posts
    778 Views
    K
    @vvPeterJones I switched Settings>Preferences>Print from “No background color” to “Black on white” and the print is much better.
  • 4 Votes
    8 Posts
    3k Views
    dr ramaanandD
    Even if the shorter, similar string was after the longer string, the same Regular Expression (Regex) can be used to get the same result:- Input abcdefghijklmnopqrstuvwx abc Output abcdefghijklmnopqrstuvwx ABC Explanation: The abc.*xyz preceding the (SKIP)(*F) in the Regex helps skip the long string starting with abc and ending with xyz and matches the other abc in the shorter, similar string! By using that Regex (mentioned in my previous post, just above this), the abc after the (SKIP)(*F) is matched, found and replaced.
  • 1 Votes
    39 Posts
    13k Views
    Lance MarchettiL
    @PeterJones Great. Thanks
  • 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 . : /
  • 7 Votes
    1 Posts
    445 Views
    No one has replied
  • 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
  • 0 Votes
    4 Posts
    443 Views
    M
    @PeterJones said: So, sorry, I don’t know of a way to do that. But I am now curious if someone else knows of a way, or if one of the codebase experts knows why it might not be possible (or whether it’s a feasible feature request or not). (I’d apologize for providing a ‘non-answer’ as my answer, when you haven’t gotten a ‘real answer’ first… but I wanted to caution future respondants to not jump to the same conclusion I did at first without actually giving it a try for themselves.) No worries I like to see how people tackle problems. And with a software as vast as N++ where I know only a small percentage of all the functions, even a non answer shows me something new most of the times. Coises answer does the trick. In an ideal world I’d like a way to switch the behaviour so Alt+drag copies, but for all intents and purposes the solution works for me.
  • 0 Votes
    2 Posts
    348 Views
    PeterJonesP
    @chtaylo3 , You only need to post in the “Support for Plugins Admin & NppPluginList” topic if there’s a feature or bug with the Plugins Admin and the list DLL itself. If there are issues with your PR to add it to NppPluginList, those will be discussed in the PR itself – and it looks like yours has been accepted already. If you want to just announce your new plugin, you can just create a new Topic in the Plugin Category to tell us about it. Hence, I am moving your post to its own Topic. And congrats on creating a lexer plugin!
  • 0 Votes
    2 Posts
    332 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
  • 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!
  • Can't Open URL in HTML Link

    General Discussion file open issue html
    5
    0 Votes
    5 Posts
    538 Views
    PeterJonesP
    @Sylvester-Bullitt said: Any idea when the next release will be out My guess: sometime in the next few weeks to a month or so – most of the time, that’s the cadence of the release schedule. But it all depends on when the developer thinks enough things have been added/fixed to warrant a new release. If it annoys you a lot, you can manually download and run the installer for an older version, and use that version which behaves as you want while wait to upgrade again until after you see the next version announced
  • Config file - Not Seen

    Help wanted · · · – – – · · ·
    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.
  • 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. :)