• 0 Votes
    1 Posts
    38 Views
    No one has replied
  • 0 Votes
    2 Posts
    48 Views
    CoisesC
    @Matt-Long said: I am new to Notepad++ and I am trying to write a script to convert 12 hour time into 24 hour time format. Below is the data string that I have to convert: 01-May-26 12:15:00 AM,689.1,WESTHAMPTON_HALL_Elec This is just one string out of 600+ but I ultimately need them all to read like: 5/1/2026 00:15,689.1,WESTHAMPTON_HALL_Elec The Timestamps… command in the Columns++ plugin can help with this. For conversion you want, you would select day-month-year in the From date and time section, then select Custom in the To date and time section, enter M/d/yyyy HH:mm as the custom picture, check Overwrite selection, then click To Date/Time to perform the conversion. To use this, you need to have all the timestamps lined up in a column and make a column selection. If your document has a series of lines like the example you gave with all three-character months, you can select it as is. If you have months spelled out, so that the right edge of the column doesn’t line up, you can use a regular expression to change the first comma to a tab, enable Elastic tabstops on the Columns++ menu, and then you can select the column, perform the conversion, and use another regular expression to convert the tabs back to commas. (Alternatively, if this is a CSV file, you can use the Conversion functions in Columns++ to convert from comma separated values to tabs and back again instead of using regular expressions.) If the timestamps don’t occur in contiguous column at all, we might have to devise a more inventive method of getting them into a column selection if you want to use Columns++ to do the conversion. For an explanation of how to make a column selection, see: https://npp-user-manual.org/docs/editing/#entering-column-mode For an explanation of how to install a plugin from the plugins list (Columns++ is in the list), see: https://npp-user-manual.org/docs/plugins/#install-using-plugins-admin
  • Notepad++ v8.9.5 Release Candidate

    Pinned Announcements
    2
    4 Votes
    2 Posts
    312 Views
    donhoD
    FYI, I just updateed RC for adding https://github.com/notepad-plus-plus/notepad-plus-plus/commit/5a804b1fc86b3a7e6e85e2fb406c94b7bfde2a36 & https://github.com/notepad-plus-plus/notepad-plus-plus/commit/f333a0721c7a69746979a9c2f698c95f1989ace7
  • autoupdater and XMLDSig

    Security
    7
    0 Votes
    7 Posts
    532 Views
    S
    I have checked out the https://github.com/donho/xmlSigner project and it is what I needed. I have used that project to correctly pass the XML signing test. I have opened some issues with that project. Here is a quick summary of how the update process works. The wingup code first queries a website to determine if an update is required and the returned XML provides information to be used later. None of the information in the XML is used if it doesn’t pass the XML security check. After passing the security check the code looks for the update status and download location, assuming an update is required. After prompting the user to download the update and finishing the download, it checks the code signing of the installer. Assuming that the code signing is valid and the correct certificate, it starts the install. I will try to document all the customizations to the code from Notepad++, wingup and xmlSigner to make it work in my project so that future users have a place to start, but that will be after I am sure its all working correctly with the new security updates. Thank you @xomx for pointing me in the right direction.
  • Facilities to create PostScript hotkeys

    General Discussion
    13
    0 Votes
    13 Posts
    370 Views
    PeterJonesP
    Sorry! It is NOT that I refuse to help you. It is mostly I don’t know how… I asked for screenshots (a normal function of Windows, which I assumed you would know how to grab). I asked for the Debug Info (I told you what menu to go into to get it). You provided neither. Also, I thought telling you that NOTHING showed in " -> Configuration" was self evident and DIDN’T need a screen snapshot? The screenshot would have confirmed: 1) that there really was “nothing” there (maybe you and I have a different definition of “nothing”), 2) whether you had really selected “user scripts” or had selected “machine scripts”, and 3) that you were willing to follow instructions to try to get help. I’m happy to announce I’ve fixed it!!! Don’t ask me how but my WHOLE NP++ setup was weird!!! It seemed half in Program Files and half in AppData. That’s not weird. That’s how Notepad++ and PythonScript are intentionally set up. The FAQ footnote that I’ve begged you to read explains why there are the two different script locations. In fiddling around I copied the PythonScript directory from Program Files into AppData and TaDa! Everything fell into place… EVERYTHING WORKED like clockwork! You thus copied way too much. You could have copied just the scripts. Or you could have just clicked the “machine scripts” button in the dialog, like I told you to, and not had to copy any files. THANK YOU for your responses and help. Glad you’ve got it working.
  • 3 Votes
    1 Posts
    176 Views
    No one has replied
  • missing config.xml file?

    General Discussion
    3
    0 Votes
    3 Posts
    172 Views
    ModelsRUsM
    Thank you Peter. Makes perfect sense. Much appreciated!
  • 0 Votes
    9 Posts
    787 Views
    AZJIO AZJIOA
    @dz15mlru Disable automatic encoding recognition. For Windows-1251 encoded Russian, auto-recognition will always open as Macintosh. If you start editing files, you will have two encodings, or rather garbage from two encodings, which will be difficult to fix manually, since you will have to re-read all the texts (this is a module for spoiling files). When you disable automatic encoding assignment, you will only have ANSI, UTF-8, UTF-16. WindowsXP-7-8-10-11 it will always open the ANSI file correctly, in 1251 encoding, as this is the default encoding. The remaining UTF-8 and others will also open automatically correctly. You will get rid of the problem forever. The automatic text encoding recognition module is needed if you open files in Arabic in ANSI, but in reality you will never do this, since a Russian-speaking person has only Russian-language files on their computer. People who want to make the file available to all people on earth save the file in UTF-8 encoding and it will always open correctly for you. You don’t need automatic file recognition, as it’s only for local files that you’ll never get from someone else’s computer abroad. Отключи автоматической распознавание кодировки. Для русского языка в кодировке Windows-1251 автораспознавание всегда будет открываться как Macintosh. Если начать редактировать файлы, то у вас будет две кодировки, точнее мусор из двух кодировок, который будет трудно исправить вручную, так как вам придётся перечитать все тексты (это модуль для порчи файлов). Когда вы отключите автораспозначание кодировки, то у вас будет только ANSI, UTF-8, UTF-16. WindowsXP-7-8-10-11 всегда откроет файл ANSI правильно, в кодировке 1251, так как это кодировка по умолчанию. Остальные UTF-8 и прочие откроются также автоматически правильно. Вы навсегда избавитесь от проблемы. Модуль автоматического распознавания кодировки текста нужен если вы открываете файлы на арабском языке в ANSI, но в реальности вы никогда этого не сделаете, так как у русскоязычного человека на компьютере есть только русскоязычные файлы. Люди, которые хотят сделать файл доступным для всех людей на земле сохраняют файл в кодировке UTF-8 и он всегда откроется правильно у вас. Вам не нужно автоматическое распознавание файлов, так как оно только для локальных файлов, которые у вас никогда не появятся с чужого заграничного компьютера.
  • Hopefully Notepad++ can display correctly ...

    General Discussion
    6
    -3 Votes
    6 Posts
    364 Views
    CoisesC
    @Samir-Sumantlal-Shah said in Hopefully Notepad++ can display correctly ...: GujaratiMT Searching suggests that “Gujarati MT” is a Apple system font that is not available elsewhere. Are you by any chance using the new MacOS port of Notepad++? That port is not maintained or endorsed by the creator of Notepad++. You would have to raise issues with it in its own repository. We’re not going have a clue here.
  • 0 Votes
    19 Posts
    9k Views
    xomxX
    [image: 1777628352084-npp-working-rendering-modes-for-rdp.png]
  • 0 Votes
    5 Posts
    289 Views
    CoisesC
    @Alan-Kilborn said in New feature: Allow additional line on each search results: @Coises I can’t tell if you’ve considered this, but one way to do it would be in conjunction with hiding lines. You could hide lines that don’t meet the criterion of -M through +N, where M would be a user-chosen number of lines before the hit, and N a user-selected count of lines after the search match. At first thought, I believe that would be significantly easier to implement than doing it in the search results window. As a plus, it (or a close approximation) could even be available after the search with something like an “expand visible blocks” command. The downside is that Show commands only work on the current document; you can’t show in all open documents (and it wouldn’t even make sense for find in files, whenever I finally get that done). At present, my use of hidden lines (using Scintilla’s function directly) and Notepad++’s way of doing it (keeping its own internal table, inaccessible to plugins, of what ranges are hidden) are at odds with one another, which causes any changes my plugin has made to hidden lines to be lost when any other tab is switched into the view. Thus far, I have not been able to devise any solution to this.
  • Notepad++ release 8.9.4

    Pinned Announcements
    9
    3 Votes
    9 Posts
    5k Views
    donhoD
    @xomx said in Notepad++ release 8.9.4: @donho said in Notepad++ release 8.9.4: Add NPP_LANG property to install a specific localization file for MSI. (Fix issue reported in comment ) As is correctly noted in this GitHub comment, the lang info should be stored into Registry HKLM and not into HKCU. Fixed by: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/09e50bad56c493a6dfd2d034d288b5271a656d96
  • Feature request

    General Discussion
    3
    0 Votes
    3 Posts
    144 Views
    PeterJonesP
    @Shobansky , See my longer answer to you here. I’m not sure why you started a new Topic when you were already participating in a Topic about exactly the same thing, and when there was a Topic created 5 days ago that was essentially the same thing. (Also, naming a Topic “feature request” is not helpful to people looking through the titles of the recent posts, because it tells them nothing about the contents of said feature request. Titles should be meaningful if you want meaningful discussion.) Also, since I’m not sure you’ve seen it, our new feature FAQ explains that, while we can talk about ideas all we want in this Community of Notepad++ users, it isn’t an official Feature Request until you follow the instructions in that FAQ to post the Feature Request to the official Issues tracker for the project.
  • Incorporating Prettier and/or js-beautify

    General Discussion
    3
    0 Votes
    3 Posts
    1k Views
    PeterJonesP
    @Shobansky , A few months after the original post was made, this FAQ was created, which explains how to use pork2sausage plugin (or the run menu, or the NppExec plugin) to transform text. And since things like Prettier or js-beautify exist, it makes more sense to pass formatting to an external utility that’s customized for a specific programming language, to make users of that programming language happy – rather than relying on limiting the formatting to whatever rules that one developer adds to the editor. (Given the arguments people have over the auto-indentation, and how the developer hasn’t been able to keep everyone happy even on that “simple” aspect of formatting, trying to get a generic formatter to the point that everyone is happy is virtually impossible.) I don’t understand why it doesn’t have some formatting capability like other editors… Every editor has strengths that it focuses its feature development on. Notepad++'s strengths are in the ease and availablilty of plugins and running external applications… so plugins specific to the language (like HTML Tidy) or plugins that launch external programs (like pork2sausage) are the way that Notepad++ made it easy to get formatting customized the way you want it, rather than restricting you to the ability of the N++ developer to support and implement. And the developer’s philosophy is that, unless it’s something that he wants to put his own stamp on, if it’s already been implemented well in a plugin or can be easily run through the run-menu/pork2sausage/nppexec, then he doesn’t want to waste his effort on doing something mediocre built-in when something good-to-great already exists. As someone with a full time job completely unrelated to Notepad++, he wants to focus his limited development time to things that he likes, he wants, or that he can add value to. Moreover, in the modern realm, things are moving toward LSP-based solutions – so if the languages you program in have LSP servers available, then (as was mentioned in this very similar question a few days ago) you can use one of the LSP plugins (the plugin by Kered or @Ekopalypse’s LSP client plugin) – so if your language’s LSP server has the code formatting feature, the LSP plugin you choose should be able to activate that.
  • Notepad++ VERY slow to open

    Help wanted · · · – – – · · ·
    22
    0 Votes
    22 Posts
    15k Views
    Boku YamiB
    @Jeff-Esposito said in Notepad++ VERY slow to open: e gotten my new computer Notepad++ takes 40-50 seconds to launch. I have removed all plugins and don’t check recent file history at launch is checked. There are no open unsaved tabs, even though that is how I want to use it and use it on my old pc and my work laptop. the install It becomes slow when using “Show Folder As Workspace” (which displays the workspace folder on the left side). It starts quickly when this option is turned off.
  • About ( Ctrl + F ) ...

    General Discussion
    2
    1
    -2 Votes
    2 Posts
    145 Views
    PeterJonesP
    @ioc2e3 , This is a copy of your GitHub issue. But I don’t think anyone has any clue what you actually want or are asking about. Could you please clarify what you’re asking about? Is it something that only happens if you use that specific localization, or does it happen in English as well?
  • Invisible spaces

    Help wanted · · · – – – · · ·
    11
    0 Votes
    11 Posts
    10k Views
    Lucas BrunoL
    Yeah, this usually happens with non-breaking spaces (U+00A0) or other Unicode space characters that look invisible but behave differently from normal spaces. Using \xA0 in regex was the right fix 👍 If you face this again, you can: Use \x{00A0} or \s to detect space variants Check in hex editor to identify exact character Then replace all in one go Also, if you’re unsure which invisible character it is, you can test different ones using tools like espaço invisível before applying them in your editor.
  • 0 Votes
    3 Posts
    352 Views
    donhoD
    @metaad Please try this one: https://github.com/donho/notepad-plus-plus/releases/tag/TEST
  • 8.9.4 installation shows error for AppX call

    General Discussion
    2
    0 Votes
    2 Posts
    195 Views
    xomxX
    @Bodenseematze said in 8.9.4 installation shows error for AppX call: I don’t know the exact message Probably(?) the same as in the https://community.notepad-plus-plus.org/post/105358
  • changing the font

    Help wanted · · · – – – · · ·
    5
    1
    0 Votes
    5 Posts
    1k Views
    H
    Honestly, this cleared up a big confusion for me. I used to think fonts were saved with the file itself, but it makes sense now that it’s just the editor displaying it differently. Also didn’t realize enabling global font overrides can mess with syntax highlighting—good catch. I’ve been tweaking text styles a lot lately while testing name formats on font generator, so this helps keep things consistent