• FORUM: Posting Queue

    Pinned
    9
    12 Votes
    9 Posts
    412 Views
    PeterJonesP

    @donho ,

    Makes sense.

    Since deleting posts was tedious for me, I had recently been looking into whether I could use the API that the forum offers to write a script to automate some of the cleanup (like with purging the deleted posts/topics), but that will take some time to develop.

    update: As of Nov 9, the purge automation is working, and it will run once a week. (Along with purging deleted posts/topics, it will also delete user accounts that are more than a year old where the user never posted and never logged in after the first day – nearly half of the 30000 accounts were in this category)

  • Please Read This Before Posting

    Pinned Locked
    1
    5 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    9 Posts
    123 Views
    mkupperM

    @Gordon-Gordonplex said in Make np++ work like text/word processor?:

    I would like my typing to work “normally”, like my email client, or like this very page does.

    FAQ: “Notepad++ is a Text Editor, not a Word Processor”. With one exception, Notepad++ does not do typical “word processor” like things such as colors, fonts, margins, etc. The exception that comes to mind is that Notepad++ has settings related to indentation and it’s “auto-indent” part of the indentation settings. Notepad++'s indentation features are tailored creating and editing text in various computer languages that each have their own indentation rules and philosophy.

    That said, people are still puzzled as to what you are asking for. You say you have used Notepad++ for years but there’s something about Notepad++ that does not align up with what you want or expect. However, you have not said exactly what it is out of alignment that’s specific to Notepad++.

    As it’s a text editor, not a word processor, Notepad++ also does not do something that happens on this forum which is that I’m typing on the left side and to my right the text I type is also being displayed with forum specific markdown tags being processed. If I want bold I press the * * b o l d * * keyboard keys in that order. On the left side I see “**bold**” and on the right side I see the word “bold” in a bold-style font. That’s a “word processor” style feature that Notepad++ does not do. In the Notepad++ world we only see “**bold**” and use other software that will processes the “**bold**” and display it as “bold”.

  • Community Question - How to start a chat with someone?

    4
    0 Votes
    4 Posts
    137 Views
    PeterJonesP

    @Almighty1 said in Community Question - How to start a chat with someone?:

    @PeterJones - Thanks! I believe this is another one where enough upvotes is needed to earn the privilege as before, I did not see the “Start Chat With” in the triple-dot menu which is probably why the main chat icon didn’t work either. Ofcourse now, I am seeing the options after my posts had been upvoted a minimum amount of times.

    Sorry about that. When writing up those instructions, I didn’t consider that people who are creating new accounts won’t have enough reputation to chat with me or another moderator… I will see if I can come up with something else…

  • How to Upload/Change Avatar

    8
    1 Votes
    8 Posts
    119 Views
    Almighty1A

    @PeterJones - First of all, many thanks for taking the time to actually go into detail with the answer(s).

    In my case for Google when the account was created, I would have preferred the stock avatar with the letter of the first letter of the username and then once I had earned the privilege, then I can have a custom avatar or maybe the better way would have been to allow either the default icon or google but not being able to customize it until it is earned.

    Yes, I figured it had to be New User or at the worse possible case, it was a disabled but since with the previously created account using Google and not having any posts, there was no risk to see what would happen if I deleted the account and created it again using github.

    I did face two issues, the first one when I deleted the account. I could not get back into the community as NodeBB was complaining the previous user no longer existed and I should refresh the page which I did a few times and the results were the same so it does not even let me view the community as a guest until I manually deleted the cookies for the site. Then when I tried to create the account, I used github because when I first login to the community yesterday, I remember somewhere where the github showed the same avatar I am using now instead of Google’s but after I clicked on github, NodeBB complained about unable to create account due to a internal error saying there was no valid email address in the profile. With both issues, I didn’t do a screenshot of the issue so I could not remember what it said exactly. But in any case, even though NodeBB complained, I did receive the e-mail to verify the email address with the link to click on which was how the account was actually created.

    After you mentioned how to change the avatar in your first response, my first thought and experiment was finding the 128 x 128 size for the avatar by searching for the size for NodeBB avatar in pixels and then after some thinking, I figure it’s similar to a physical picture and you put a border layer on top of it for lack of better term, that is what is hiding the rest of the image. My actual image used is actually 68 x 73 so if it used the original size, it would probably fit within the circle except NodeBB itself probably resizes the image so it’s 128 x 128 so one way to fix this is probably to create a canvas that is 128 x 128 first and then put the original sized image on top of it so it will scale the new image instead. If it didn’t enlarge the original image to 128 x 128, then it would be easier to use a photo editor to simply get all wanted pixels within the center of the circle even with the coordinates unknown but what I did was simply added white pixels in all directions until things fit, first by making the the height 128 pixels first before adding pixels on any of the four sides until it fits. Actually, changing the canvas size in this case while keeping the original image size works as well.

    Many thanks for the tips.

  • RegEx help

    2
    0 Votes
    2 Posts
    50 Views
    Terry RT

    @brenda-gross said in RegEx help:

    one has the character | and one has the work CONCAT

    You could try this using the Replace function:
    Find What:(?-is)^(?=.*(?:CONCAT|\|))(.*)
    Replace With:--\1
    Search mode must be regular expression. You can click on “Replace” to do it singularly, or “Replace All” to change the entire open file.

    I do wonder though that the single character | might be used elsewhere. Hence why I say using the single Replace button so you step through the file and can check each line is correct for change before changing it.

    Terry

  • Workflow: Number of open tabs

    21
    0 Votes
    21 Posts
    381 Views
    Alan KilbornA

    It appears that those that like a less-streamlined UI are about to get their dream feature:

    6f5e9150-f95a-446e-877c-b76a66384644-image.png

    I’ll say no more.

  • MacroInspect which comments macros

    36
    8 Votes
    36 Posts
    787 Views
    mpheathM

    To All, I have updated the gist with revision 8.

    Replace constant IDF_WHICH_DIRECTION with alternative IDF_FORWARD_DIRECTION to make it more meaningful with the action. Use html.unescape() on type2 values to resolve entities. Example & will change to &.

    @Alan-Kilborn OK, XML comments do not require escapes with entities. -- can be a problem with XML comments so will be reduced to single - if exist.

    Replacing IDF_WHICH_DIRECTION is OK so as to avoid user confusion with which direction. The json will inherit the change so the file needs to be removed to get the alternative value of IDF_FORWARD_DIRECTION. Or, just edit the values in the json file to your liking.

  • remove hyperlink

    35
    0 Votes
    35 Posts
    24k Views
    nils svejgaardN

    @Lê-Thanh-Bảo said in remove hyperlink:

    2021-02-18_3-11-36.png

    Step 1: - Open Notepad++ and go to Settings.
    Step 2: - Select Preferences.
    Step 3: - After opening preferences window, Click on ‘Cloud & Link’ tab.
    Step 4: - Click under the ‘Clickable Link Settings’ section in uncheck the ‘Enable’ checkbox.

    This. just straight up saved so much frustration :D.
    Much love sir. many thanks from random person who registered ONLY to say thanks :D

  • About attributes of the language node, in langs.xml

    4
    1 Votes
    4 Posts
    162 Views
    PeterJonesP

    @guy038, said in About attributes of the language node, in langs.xml:

    Regarding the Lua language, the first line is :
    I hope that it still works with this layout. Personally, I would expect this syntax :
    … For the two languages mssql and sql, the commentLine attribute is moved at end of current line, after the commentStart and commentEnd attributes

    Order of attributes is irrelevant to XML (even when parsed by the outdated tinyxml library used in N++)

    The embedded Javascript and SearchResult languages do not have any extension ! I suppose that it’s on purpose ?

    Since embedded Javascript is only for JavaScript embedded in HTML and similar files, it makes sense to not populate the ext attribute. And SearchResult even more so.

    More generally, for a specific attribute, is the attribute="" syntax identical to the total absence of this attribute ?

    As far as I know or can determine.

    Regarding the backspaceUnindent attribute, it doesn’t seem used, by default, even for the two languages python and yaml which use the four space indentation

    Don didn’t bother updating the XML to include the default value for all languages, because the code already assumes the default value.

    That attribute will only show up on languages that you change the state of that option – or perhaps on languages where you change any of the langs.xml-related options in the GUI (I haven’t tested that).

    Thus, the no status, for the powershell language seems useless, too !

    If you toggle it on and then back off (there might have to be an exit/reload between; again, I haven’t tested specifically), it will first populate the attribute with the yes when you toggle it on (and then save settings), then it will populate with no when you toggle it back off (and then save settings).

    Once Notepad++ has started tracking a given attribute in its XML settings, it will always write that value when it writes the associated XML on exit; the attribute-is-missing case is just to simplify handling installations that are being upgraded (so a person doesn’t have to re-create their langs.xml in order to be able to toggle that option), and Don made use of this to save the effort of adding that attribute to every language in the model XML file.

    … however, looking at the langs.model.xml file, for the powershell language, I just see :

    So, this may be a mistake on my part, although I don’t use the powershell language, yet !

    Right now, the most recent commit for langs.model.xml is here, and it shows that powershell does not include that attribute. Which means for the no value to have shown up in your XML, you either toggled that option or you made some other change for powershell (knowingly or unknowingly).

  • Disable Auto Update checking and update

    5
    0 Votes
    5 Posts
    22k Views
    PeterJonesP

    @Alex-De-Lara ,

    Please refrain from making the same complaint in multiple locations in the forum (ie, here and in this earlier post), and be patient while post-approval-queues are processed, and people have time to craft a reply.

    update: By posting in this Topic as well, are you just saying “I was able to turn off auto-updates thanks to seeing the “Enable Notepad++ auto-updater” preference mentioned”? or are you saying, “I previously had auto-updates turned off by uncheckmarking that option, but even in a recent version, it ran the auto-updater despite having that option turned off” – because the latter is what this Topic is about… so if you’re really also having problems where the auto-updater didn’t honor your setting, you need to tell us what version you were updating from – maybe you found a bug in the updater option (though it’s doubtful)

  • pinned tabs

    7
    0 Votes
    7 Posts
    221 Views
    Lycan ThropeL

    @datatraveller1 ,
    @Alan-Kilborn is right, if what you’re describing is true, although even after enabling the “Exit on Close the last tab” in the preferences dialog, I couldn’t reproduce your issue, so unless you didn’t enable the pin tab feature, and then click the pin, I don’t see how this could have happened. I tried several different variants of it, and couldn’t do it.

    Even though I agree with you on trying to see the value of this feature, other than to keep a document pinned and to the left, and unable to be moved once it’s pinned, I see no other value of it for me. If people want it for some reason, good for them, it’s implemented, and fortunately, you also have the option to disable it, so…the OP’s statement to me, seems to exemplify excessive conditions.

    I seldom have so many files open that they scroll off the screen, and frankly I find that kind of tab/file poor management and chaotic in nature. Between the File->Recent Files and the View->Document List features, I don’t see the purpose of having excessive amounts of files open at one time. Even assuming one has a header file open, and multiple dependent files open to look at, this seems like bad management, to me.

    Even with web development, I would expect more open applications for graphics, FTP, word processor, etc, outside of Notepad++, than mutiple files of .css files, .html files, maybe scripts, etc inside of Notepad++ that wouldn’t be better off being managed (open/closed as needed) by using the Recent Files or Document List features or even the Project Panel or Folder As Workspace views to help manage a set of files in a project. I know some people work differently than perhaps I would, but it seems that excessive amounts of open files would lead to nothing more than confusion, accidental closures (which Pin Tab helps with) or editing the wrong file…etc. Might be just me though. :-)

  • Plugin 'AutoCodepage v1.2.7' für 'notepad++ v8.7.4' funktioniert nicht

    5
    0 Votes
    5 Posts
    134 Views
    datatraveller1D

    @PeterJones said in Plugin 'AutoCodepage v1.2.7' für 'notepad++ v8.7.4' funktioniert nicht:

    Sorry

    No problem, no need to say Sorry :-)

  • Per-Desktop Instance

    8
    0 Votes
    8 Posts
    3k Views
    M

    @KoliadaES-Release said in Per-Desktop Instance:

    Mostly because the last 5 or so updates seem to be massaging existing material. But it is quite possible I’m missing something important.

    What you’re missing (IMO) is that Notepad++ has very few automated tests, so new features have an increased risk of causing regressions in weird unpredictable ways. This is very suboptimal, but nobody has the time or motivation to add more automated tests, especially since UI tests would probably be very difficult to implement.

  • Keep only one copy of a line that may repeated many times, or only once.

    2
    0 Votes
    2 Posts
    110 Views
    CoisesC

    @Robert-Or-Janet-Diebel said in Keep only one copy of a line that may repeated many times, or only once.:

    I wish to search a file and keep only one copy of a line that may be repeated many times, or only once. The output, then is one copy of every line type, with all repetition removed.

    Edit | Line Operations | Remove Duplicate Lines does that.

  • CRTL+Z & CTRL+Y

    4
    0 Votes
    4 Posts
    126 Views
    CoisesC

    Going by the translation Terry R posted, this is the same behavior discussed recently here:

    https://community.notepad-plus-plus.org/topic/26403/

    and, as noted in that thread, there is a GitHub issue here:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15878

    addressing it.

    Honestly, I think this is very unlikely to change, and I think it would be very difficult to “fix” in a consistent way. But, see the GitHub discussion and add to it, if you have observations or suggestions.

  • Windows taskbar; filename only?

    3
    0 Votes
    3 Posts
    87 Views
    Harly WalshH

    @PeterJones I just found it…
    I don’t skim too fast…
    Cheers anyway mate.

  • Grab Mobile Phone Number from wrap data

    3
    0 Votes
    3 Posts
    158 Views
    guy038G

    Hello, @tcast-mobile, @mark-olson and All,

    @tcast-mobile, just a variant which does not care about the socmed string but simply searches for the nearest multi-digits phone number, preceded by a + sign, beginning a line :

    FIND (?-is)healthcare\R(.+)\R(?:.+\R)+?\+(\d+\R)

    REPLACE $1 | $2

    Notes :

    Most of the explanations, relative to the regex syntax, have already been given by Mark. Two other points :

    The (?:......) syntax is a non-capturing group, as we do not need this information in replacement

    The \+ represents a literal +

    Best Regards,

    guy038

  • How to Markdown code on this forum?

    Locked
    12
    1 Votes
    12 Posts
    29k Views
    PeterJonesP
    For Future Readers

    The hints in this discussion are mostly still good (other than suggesting imgur, as the moderator note clarifies); however, a few years after this discussion, we added a FAQ: Formatting Forum Posts which should be used as the canonical/official guide for using Markdown on this Forum; the benefit of the FAQ is that it can and will be kept up-to-date, which is harder to do for these older discussions.

  • The Notepad++ website is blocked in Russia.

    4
    0 Votes
    4 Posts
    1k Views