• Notepad++ and Roselyn C# 8.0 compiler

    2
    0 Votes
    2 Posts
    230 Views
    PeterJonesP

    for others: this was re-opened a few days later at the new topic: https://community.notepad-plus-plus.org/topic/19977/how-to-configue-notepad-with-any-programming-languages … any further discussion on this question should go there rather than here.

  • Is it possible to remove bold formatting using PythonScript

    6
    0 Votes
    6 Posts
    490 Views
    Daniel FuchsD

    @Ekopalypse

    OK, thank you for your effort!
    I will try to work my way along your great example script here:
    https://github.com/bruderstein/PythonScript/blob/master/scripts/Samples/EnhancedPythonLexer.py

  • Opinions please: N++ RE implementation (beginner w/experience)

    5
    0 Votes
    5 Posts
    207 Views
    Frustrated SurferF

    @Alan-Kilborn Like I wrote to the other respondent, much appreciated. Another farming metaphor: You’ve opened the gate to a grove (trove) of information. (The pun, and puns in general now that I think about them, we gotta admit it doesn’t hurt to crack a grin and roll our eyes!)(Y’know, now that I think about it some more, a pun may well be about the only humor that can be easily conveyed in plain text without having to explain it with a #hashtag.) Thanks again.

  • simple wildcard search

    4
    0 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @gerdb42 said in simple wildcard search:

    (?<=\b\w{3})[TW]

    This one may be problematic with N++ because it starts off with a lookbehind.
    Due to the nature of the way N++ conducts searches, I wouldn’t be confident in this one.
    I’d go with one of the other suggestions.

  • Anyone know how to make this pannel apear?

    2
    0 Votes
    2 Posts
    141 Views
    PeterJonesP

    @Absolute-Ciroc ,

    Macros don’t record/show the pulling down of menus. They perform the individual actions (equivalent to what’s called from menus or keyboard shortcuts).

    Unfortunately, some menu entries, while they are perfectly valid in macros, do not record properly; if you share what actions you want to take in your macro, we can help you figure out whether they can be recorded, or if they have to be manually added to the macro.

    If you are trying to pick individual entries from the Most Recently Used File list (which you have covered up in your photo), then the chances are “no, Macros cannot access those” (though Restore Recent Closed File and the actions below should be (I believe) available to macros).

    official docs: macros overview = https://npp-user-manual.org/docs/macros/ official docs: macros config-file syntax = https://npp-user-manual.org/docs/config-files/#macros
  • How to mark lines with the first 10 characters duplicated

    15
    0 Votes
    15 Posts
    1k Views
    EkopalypseE

    @Alan-Kilborn

    maybe just a copy/paste before the sorting took place.

  • What's better?

    3
    0 Votes
    3 Posts
    151 Views
    PeterJonesP

    @FurryX-GD said in What's better?:

    What’s more immportant? Newest version or 64-Bit? The Current version is only 32-Bits, I am a newcomling on Computer/Computer Programming, as you may could guess. I have of course a 64-Bit PC, so I don’t know what’s more important… Also why does the newest version doesn’t have a 64-Bit version?

    Um. What is more important to you is the only meaningful question, because different people have different needs.

    And you are working under a false assumption. The newest version of Notepad++ as of today, v7.8.9, comes in both 32-bit and 64-bit, as you can see easily at https://notepad-plus-plus.org/downloads/v7.8.9/ :
    3ba76d6c-0098-46f7-9b01-95c1c07387f3-image.png

  • Replace help

    5
    0 Votes
    5 Posts
    501 Views
    PeterJonesP

    @Tco-Robinson ,

    Your problem statement is hugely ambiguous. If you want help, it’s generally best to supply enough information for us to understand your question, let alone answer it.

    Based on your original problem statement, I would have said

    FIND = \h*\(|\) search for 0 or more spaces followed by a (, or search for ) REPLACE = blank/empty replace with nothing SEARCH MODE = regular expression

    Starting from

    A Song of Ice & Fire (2010) Some title hear (year) Blah (blah)

    This would give

    A Song of Ice & Fire2010 Some title hearyear Blahblah

    … which is nonsense, but matches the description you gave in your original post

    However, this comes close to meeting @Szabolcs-Horváth’s problem statement… which is slightly better, because he at least showed “before” and “after” data. For @Szabolcs-Horváth , though, since he doesn’t need the space removed, I would simplify to a character class, such as [\\[\]] which means find either the literal [ or the literal ] and replace with nothing.

    With your (@Tco-Robinson’s) added caveat of “I need to remove [what is] in the parentheses as well”, it becomes a completely different problem than you originally described, with a different solution:

    FIND = \h*\(.*?\) find 0 or more spaces, followed by literal parentheses with anything inside) REPLACE = empty/blank SEARCH MODE = regular expression, Make sure . matches newline is turned off
    This will convert the original data set I showed to A Song of Ice & Fire Some title hear Blah

    which might be closer to what you want.

    However, since you specifically said “year”, then maybe you don’t want non-numerical contents of parentheses to be deleted. if that’s the case, change FIND WHAT to \h*\(\d{4}\), which searches for 0 or more spaces, a literal (, exactly four digits, and a literal ), which will convert the original data to

    A Song of Ice & Fire Some title hear (year) Blah (blah)

    … so the text inside parentheses stays there, but the year (four-digit number) in parentheses goes away.

    Do you see how useful it is to actually include examples of things that do and don’t match, and to show both before and after data? It makes your problem much easier to understand, because then I could have presented just one of my three solutions, rather than having to come up with all three, or having to drag the information out of you to narrow it down.

    I am posting useful advice below. If you do not show that you have read and understood this advice, by following this advice in any future response, you will find that any help you might get will likely not meet your needs (and the help will not be from me, if you don’t act on the advice given). If you want good help, you have to give enough information for us to help you.

    ----

    Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as plain text using the </> toolbar button or manual Markdown syntax. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get… Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

  • Notepad++ stopped saving closed tabs

    8
    0 Votes
    8 Posts
    914 Views
    Igor HolewińskiI

    @PeterJones

    Actually C:\Program Files (x86)\NPP\Notepad Plus Plus\ folder was set to read-only mode. I have set it to modify type and deleted the file doLocalConf.xml. It required admin rights, which surpisingly I had at this point. I guess that my company’s policy regarding this is different in various cases, for example I cannot install any software of my own, but I am able to perform this action.
    Anyway, after running Notepad++ again it cleared my tab session, but after having a new one and shutting the application, it was still present there after restarting NPP. So, the issue was solved by the step 2 from your post.

    Thank you very much for your help, that was really annoying thing to deal with on everyday basis.

  • 0 Votes
    3 Posts
    300 Views
    Евгений КривоноговЕ

    @andrecool-68 Огромное спасибо!

  • How can i randomize/shuffle lines using notepad ++

    2
    0 Votes
    2 Posts
    5k Views
    Alan KilbornA

    @Rana-Jawad-0

    The script you linked to works for me.
    The script has no 32-bit/64-bit dependency, so it will work in either.
    With no further description than “doesn’t seem to work”, no one can really offer anything beyond saying “sorry to hear that”.

    It appears Notepad++ itself is getting a “shuffle lines” feature, see HERE and THERE. I suppose nothing is stopping you from grabbing an unreleased build that has the feature in it, and using that for your randomization needs.

  • Find my previous post?

    2
    0 Votes
    2 Posts
    114 Views
    Alan KilbornA

    @Peter-Gillespie

    Maybe you are talking about THIS ONE?

    I got techy and didn’t provide the debug info so it was closed.

    What is “techy”? Maybe a typo?

    5 different “Git” places to do different things

    Hmmm, well I guess there’s a few, but the main 2 are the one above that you (probably?) posted in, and the user-manual one…

    Also if acceptable could a mod perhaps reopen it.

    Typically those "mod"s / devs don’t hang out here.
    This is more of a “user-to-user” support community.

  • Lang.xml Fails to Import

    2
    0 Votes
    2 Posts
    253 Views
    EkopalypseE

    @AzBright1

    I assume because in the xml there are some chars which aren’t escaped correctly.

    change existing with

    <Keywords name="Operators1">* - % &amp; ( ) . / + &lt; = &gt; ;</Keywords>

    and the words <EG and >EG from Keywords1

    with

    &lt;EG &gt;EG

    and then it should import.

  • UDL: Is it possible to use asterisk (*) as a wildcard?

    2
    0 Votes
    2 Posts
    275 Views
    EkopalypseE

    @Piet2609

    Does using {trigger: work for you?

  • can i use autocomplete for module name with python?

    4
    0 Votes
    4 Posts
    861 Views
    TroshinDVT

    https://sourceforge.net/projects/npp-python/

    This python script will generate a custom python.xml file used by Notepad++ for auto-completion features when programming in python (function names, arguments, and descriptions), using your own set of imported modules.

  • 1 Votes
    3 Posts
    339 Views
    AMGeolA

    Sorry…Alan Kilborn
    I was new…repetitive never will happen again…thanks for reply and suggestions…but Np++ had many things option/functions as excel as well…
    stay blessed

  • Notepad++ stopped saving closed tabs

    5
    0 Votes
    5 Posts
    502 Views
    PeterJonesP

    Please note that on Sep 4, 2020, this discussion was continued in another Topic: https://community.notepad-plus-plus.org/topic/19951/notepad-stopped-saving-closed-tabs

    Please use that Topic for any further conversation on this question.

  • Old Pythonscript stopped working

    22
    0 Votes
    22 Posts
    1k Views
    Alan KilbornA

    @PeterJones said in Old Pythonscript stopped working:

    Think about what you just said!

    Clearly, and sadly, there isn’t much thinking going on.
    The same dumb thing was said HERE, turning the dumbness into an official complaint against a great piece of software. :-(

  • Created a test file that not running

    3
    0 Votes
    3 Posts
    273 Views
    PeterJonesP

    @Asher-Knopsnider ,

    Cookies!

    See the FAQ: https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place

    You seem to have a misunderstanding of this forum. This is a forum for Notepad++, where we talk about (and ask/answer questions about) the Notepad++ text editor.

    General programming questions (where “programming” includes writing webpages) are not on-topic here. The best question to ask yourself is “does the answer to the question I want to ask depend on what application I am using to write my code”? If the answer to that question is “no, it doesn’t matter whether I’m using Notepad++ or notepad.exe or something else to write my code”, then the Notepad++ forum is not the right place to ask the question.

  • .dsc files

    2
    0 Votes
    2 Posts
    225 Views
    Terry RT

    @Todd-Scheck said in .dsc files:

    pluggin for .dsc files

    Doing a google search for this file format immediately turns up a couple of types. One is a file used by Nikon to support images taken on a camera. However they state that the file is used by the software, not to be opened manually. Another is related to WPS Office and as such may well be a binary file, or at least again a file that may contained data formatted only for use with that software.

    I hope you understand that Notepad++ is a “text” editor. It does not understand any binary data and will very likely corrupt any such file you attempt to use in Notepad++. If the file is only designed for “internal” use (within the S/W that uses it) again you are likely to cause issues using it in Notepad++.

    Do you have more info on what is actually contained in the file you want to open in Notepad++, like the source?

    Terry