• Adding Additional Functions to PowerShell Language

    2
    0 Votes
    2 Posts
    251 Views
    PeterJonesP

    @unDrac86 said in Adding Additional Functions to PowerShell Language:

    editing the command sources.

    Settings > Style Configurator > PowerShell > CMDLET and add text to the user-defined keywords box

    203a0e34-e1f9-4bf7-a9fd-3646619076ce-image.png

    f9a410ef-c5cc-462a-8cbc-1ba0990a2be7-image.png

    Though I was surprised to learn that at least for PowerShell, the user-defined-keywords box is weirdly case-sensitive: if I typed Get-VM in the box, it didn’t highlight, even though that’s the case that’s used in the file; but if I typed get-vm in the box, it will highlight in the editor, whether it’s Get-VM or get-vm or gET-vM

  • Почему отображается так???

    2
    0 Votes
    2 Posts
    196 Views
    PeterJonesP

    @Scrubbb ,

    not understand, I want to process the DLL, but it opens in this form

    Yes, a DLL is a binary file. Looking at it in a text editor isn’t very insightful.

    Notepad++ isn’t a decompiler – it will not take a compiled exe or DLL and give you the source code.

  • Which data types are allowed to drop?

    7
    0 Votes
    7 Posts
    461 Views
    Mario ValleM

    OK, copying text to clipboard works but it is not drag and drop.
    Anyway, I have to read carefully the @artie-finkelstein part on dropping files. Also I will add a separate “copy to clipboard” functionality that till now is missing (hoping drag&drop suffices).
    See you soon!

  • Fix timing format

    3
    0 Votes
    3 Posts
    197 Views
    Mohammed FouadM

    @PeterJones said in Fix timing format:

    $1,$2
    thanks so much you save my day
    its working with me good

  • Adding Random Charactere/Numbers at line ending

    2
    0 Votes
    2 Posts
    264 Views
    Alan KilbornA

    @SENPAY98K

    Not natively. You can do it with a scripting plugin. You have to write some code to do it.

  • 0 Votes
    5 Posts
    292 Views
    David FindlayD

    @PeterJones Thank you very much. Works well. Wow there is a lot to learn about what notepad++ can do.

  • Notepad++ freezes on large files

    7
    0 Votes
    7 Posts
    10k Views
    PeterJonesP

    @Igor said in Notepad++ freezes on large files:

    Then the app freezes during the work with the file - mainly, during cursor navigation. It freezes and unfreezes, freezes and unfreezes and so on. It seems like some heavy task is running from time to time in the UI thread.

    Yes, it’s a huge file. Notepad++ has a lot of stuff it has to do while navigating around or editing a big file. Sorry.

    As I said, the best option for you on this huge logfile seems to be Plugins > Big Files > Open BigFile, which will look at the file in chunks. If that doesn’t work for you, then there is no more advice I have for you with regard to Notepad++.

  • How to remove after and before

    3
    0 Votes
    3 Posts
    182 Views
    PeterJonesP

    @veronica-fty said in How to remove after and before:

    Jose | Type = Student | phone = 2020 | list = Famly | age = 28 | Date = saturday 2020
    Mary | Type = Student 2 | phone = 2067 | list = Famly | age = 45 | Date = monday 2021

    FIND WHAT = \|.*? (\| Date =)
    REPLACE WITH = $1
    SEARCH MODE = Regular expression

  • 0 Votes
    3 Posts
    180 Views
    Alan KilbornA

    @Scott-Nielson said in How do I reverse the order of the lines in multiple files of a folder with Notepad++ ?:

    but I want to know if that be done for multiple files of a folder

    Short answer: Nope

  • Restore the old theme?

    9
    0 Votes
    9 Posts
    5k Views
    Luiz Felipe Donegá PivaL

    Had the same issue, after some tries, just deleted the “stylers.xml” which was at the APPDATA/Roaming/Notepad++

  • Dark mode problem

    4
    0 Votes
    4 Posts
    1k Views
    Милен СимеоновМ

    @PeterJones said in Dark mode problem:

    I am not going to pay money to try to replicate someone else’s problem.

    I’m not expecting that

    Notepad++ v8.1.2 (64-bit) Build time : Jul 16 2021 - 01:59:50 Path : C:\Program Files\Notepad++\notepad++.exe Command Line : Admin mode : ON Local Conf mode : OFF Cloud Config : OFF OS Name : Windows 10 Pro (64-bit) OS Version : 2009 OS Build : 19043.1110 Current ANSI codepage : 1251 Plugins : CodeAlignmentNpp.dll ComparePlugin.dll ElasticTabstops.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll nppplugin_svn.dll NppTextFX.dll NppXmlTreeviewPlugin.dll PoorMansTSqlFormatterNppPlugin.dll PythonScript.dll Remove Duplicate Lines.dll

    I tried everything that you mention but, there is no difference.
    When i close NPP and re-open again the spacing is gone :(

    May be my theme is bugged i’ll contact the author
    Thanks

  • Running Python with Notepad++ on Windows

    5
    0 Votes
    5 Posts
    4k Views
    PeterJonesP

    @Dan-Brownsword said in Running Python with Notepad++ on Windows:

    output from an Anaconda Prompt

    Sorry, I don’t know Anaconda, so I don’t know how to issue a command to launch a specific script with a specific python inside the Anaconda shell. Whatever the command-line syntax is for that, you would run that command line from the RUN menu, making sure to put the quotes around any paths that might have spaces in the path name.

  • Open With dialog for all files should include N++

    2
    0 Votes
    2 Posts
    859 Views
    mere-humanM

    There’s a chance it will change as soon as Windows 11 is released.
    If not, then it should be reported as a bug on GitHub.

  • Possible bug or setting missing

    10
    0 Votes
    10 Posts
    485 Views
    Geoff TaylorG

    @PeterJones
    thanks for the info

  • How do I find some text but skip some other slightly different text?

    22
    0 Votes
    22 Posts
    1k Views
    Scott NielsonS

    @Alan-Kilborn Sorry, that should be, -</span>(*SKIP)(*F)|(?s)(?<=mso-ansi-language:EN-US'>)-(.*?) *(?=</span>) - I forgot to copy the last RegEx and your system doesn’t let me edit what I post after 3 minutes!

  • 0 Votes
    12 Posts
    3k Views
    bofhlusrB

    @PeterJones said in 3 Newbie questions: cursor and folder margin disappeared and selective line editing in a file:

    @George-Jereza ,

    It would have been nice if you’d also copy/pasted the text and clicked the </> button, like I asked. But when I retyped that whole thing, I didn’t see what you were seeing.

    Then I realized: you don’t actually have the Lua syntax highlighter selected for that .bp file, because there isn’t even the column for the folding indicator, and your numbers have no color to them. That is, it looks like this screenshot:
    6559a482-813b-40f0-92cf-43dec5f4faee-image.png

    Notice that the lower left corner, and the Language menu, both indicate Normal Text rather than Lua. If you set Language > L > Lua,
    9762beb5-9ddb-4bd7-a360-f145eed15a03-image.png
    Then you can see “Lua source file” in the lower-left and Language > L > Lua is indicated as selected in the menu system; further, if you look now
    3e694cdc-24cd-42af-a906-64fb1114bacc-image.png
    … you can see that true is blue, as a known constant; the number values are orange; and there are fold markers in the left column.

    The reason why the .bp file doesn’t default to Lua is because that’s not a standard Lua extension. If .bp files should always be “Lua” for you, then you need to tell Notepad++ this: go to the Settings menu, click Style Configurator; in the “Language” box on the left, select “Lua”; in the “User ext. :” box at the bottom, type bp (no dot); then click save-and-close.
    7492592b-d7e3-41d7-bcc3-52962611a9b5-image.png
    From now on, when you open a .bp file, it will recognize it as Lua and highlight appropriately; further, if you create a new file and Save As something.bp, it will also start hightlighting as Lua after the save is complete.

    Plugins : LuaScript.dll mimeTools.dll NppConverter.dll NppExport.dll

    Given that your Debug Info showed Lua Script plugin is installed, I think you do know how to install a plugin … or at least, someone explained it to you at one point, because you have an extra plugin installed.

    like they have it in Microsoft Word’s Navigation Map

    Like @Ekopalypse said , the Notepad++'s Document Map isn’t quite the same feature as MSWord’s Navigation Map. MSWord’s Navigation Map uses word-processor HEADER# format indicators to create a navigatable Table of Contents. Notepad++'s Document Map just takes the whole document and shrinks to the tiniest font it can render, and shows a highlighted section to let you know what’s on screen by giving you an unreadable “overview”, so you can see approximately where in your document you are. If you don’t find that useful, don’t use it.
    4c6fa616-0caf-4250-a225-984d8e9497e1-image.png

    Notepad++ does have a feature called “Function List” (View > Function List will toggle it) which shows you the functions (and classes) in your source code. But since your .bp files appear to be using Lua syntax for just storing data structures[1] (kind of a Lua-based[2] config language similar to “JSON” – but using Lua syntax instead of JavaScript syntax), rather than as a full-blown programming language, then you don’t have any functions (or classes). If you did, it would make it easy to navigate to each function (which is as close as source files come to having “headers” from word-processing nomenclature).

    [1: Looks like a video-game config file to me. We’ve seen some search-and-replace queries in video-game configs recently. I wonder if there’s been one or more more easily-moddable games released recently.]
    [2: I say “Lua-based” loosely, because the Lua syntax highlighter was not highlighting the comments, which a quick google tells me are actually -- indicated, not #. So now I’m wondering if it’s really not Lua-based, or if it would be better to pick some other language for syntax highlighting for your .bp blueprint files.]

    @PeterJones Sorry for not providing text to the sample but thank you very much for re-typing the whole thing!

    Yes, the sample file I showed you is a gaming file. And yes it is a lua file. The game is decades old with a very active modding community (‘mods’ are like add-ons or plug-ins).

    I became familiar with Npp plugins after you provided me the link to the Npp manual and after I quickly scanned the Npp owner’s guide. I thought that a text editor that mentions the word ‘sex’ in its cover page has really something to offer and therefore worth checking out. Lol.

    The reason why I thought I had a problem was because I did change the language setting in the Configuration Style but nothing instantly changed on screen unlike other settings. It was not clear that I had to quit Npp before the change would reflect onscreen.

    BP is an acronym for BluePrint. It is a lua file. The game modders just extended the lua syntax by adding ‘#’ for comments.

    https://wiki.faforever.com/index.php?title=Modding

    Btw, if you or anyone is stressed out, I found that this particular game, --having real physics in its ballistics (eg. nukes, artillery, etc.) and is very moddable might help take your mind off more serious stuff. In my opinion shared by lots of others, it’s the only real time strategy game that and still exists. There’s lots and lots of videos in YouTube on the game.

    Thank you for your help and excellent reply.

  • All Files Gone After Updating to 8.1.2

    3
    0 Votes
    3 Posts
    161 Views
    Ryan LatoR

    Thank you @PeterJones I was able to get them back. I will make sure I don’t leave unsaved notes open when updating. It has never happened before and the one thing I love about NotePad++ is I don’t have to save my notes, but I guess there is always a downfall

  • 3P : Progress Programmers Pal autocomplete seems to use old dir structure

    4
    0 Votes
    4 Posts
    329 Views
    artie-finkelsteinA

    @William Patton - I’m not a user of 3P, but I do note that they do seem to keep their plugin updated to follow major changes in Notepad++. Are you sure your editor version, the installed plugin version and the plugin directory structure are of similar vintage?

  • How do I replace some text?

    13
    0 Votes
    13 Posts
    455 Views
    Scott NielsonS

    @Alan-Kilborn OK, thanks a lot! Hasta la vista.

  • Adding line breaks to fixed width table

    13
    0 Votes
    13 Posts
    1k Views
    Terry RT

    @Stinson-s-Stationers said in Adding line breaks to fixed width table:

    It didn’t even occur to me that DBF would be a standard file type i could find a specific viewer for.

    Yes, in fact it is one of the oldest file types, first created in in the early 1980s, see here. It is still possible that it doesn’t actually correspond to the acceptable format known, but certainly worth a try using one of the free viewers.

    File extensions don’t restrict developers to an acceptable format but most will do so. I just feel that using Notepad++ for a task it is not designed for (editing what is essentially a binary file) is looking for trouble. 99% of the time it will work (as this binary file is mostly just the text records with a binary header), but just once you will find your transformation will produce bad data. If you are not doing extensive data checks every transformation, it could have dire consequences.

    As you say this is company data, so you need to be certain the output is valid. Using the right tools for the job is central to achieving this.

    Terry

    PS creating a robust process means it can be easily handled by anyone who can click few buttons,so less chance in the future something could go wrong