• Regex Help Please

    2
    0 Votes
    2 Posts
    641 Views
    Mark OlsonM

    @Phat-Huynh-0

    In the future, please read this FAQ and use literal blocks of text wrapped in ``` to show your text rather than pasting images.

    It is not clear what you want to remove at the end of the line, but if you want to remove everything before CUSTOMER REFERENCE NUMBER: on lines with that text, you can use Search->Replace... to open the find/replace form, check Wrap Around, set Search Mode to Regular expressions, set Find what: to (?-si).*(?=CUSTOMER REFERENCE NUMBER:), leave Replace With: empty, and hit the Replace All button.

    Here is the standard documentation for regex in Notepad++.

  • How to prevent re-alignment of lines

    6
    0 Votes
    6 Posts
    242 Views
    Alan KilbornA

    @Graham-Norris said :

    Hopefully someone else does.

    Yes. But yours is such an oddball problem, I have doubts.

    Are you using any unusual plugin?
    Can you post your Debug Info here?
    See Notepad++'s ? menu for how to obtain that.

  • How can I specify the priority of styles in stylers.xml?

    3
    0 Votes
    3 Posts
    162 Views
    Alan KilbornA

    @juyoung9653 said in How can I specify the priority of styles in stylers.xml?:

    in substyle1, it gets overwritten by DEF NAME.

    Presume that by “substyle1” you mean “USER KEYWORDS 1” ?
    Otherwise, be clearer, because I see no “substyle1” anywhere.

    It seems to be working for me, in N++ 8.7.5:

    4e5768e9-b4e3-4ad1-9379-419948d99340-image.png

    I think I’d notice if it were using the “DEF NAME”, as that is a radically different color:

    6f306248-2b16-4863-8806-de56c56ccc4f-image.png

  • File name on UI tab is wider now. On purpose? Can I revert?

    3
    0 Votes
    3 Posts
    482 Views
    Alan KilbornA

    @Joseph-Millenbach said:

    All my tabs in the app, where the filenames are shown, are much wider now.

    Hmm, I somehow can’t believe that someone would complain about wide tabs, and yet fail to notice the “pin” icon on the tabs.

    so I was assuming it was a purposeful change

    It was.

    And I’ll mention I almost gave up before working around this “new user” UI. This is not a “complaint” proper that I would instead put in the complaint area (round bin).

    This UI was not intuitive to a person with a CS BS and decades of experience. And you allow zero other ways to get help.

    All I kept seeing was “you need to type at least 7 characters” but the title had plenty of characters. I didn’t realize the area on the left had a cursor (was under the pretty dialog message on Firefox). I thought it was a queue management interface. That after I posted something it’d appear there until it was approved, and go through various states (waiting, approved, etc).

    These seem to be complaints against the forum software, not Notepad++.
    The forum software is just something used by the Notepad++ authors, not developed by them, so if you don’t like it, go complain somewhere else about it (the software used is NodeBB).
    More forum complaints by this user HERE.

  • How to make the Find box open in the same monitor?

    6
    0 Votes
    6 Posts
    266 Views
    Alan KilbornA

    @Snabel42 said:

    potentially semi-transparent

    Yea, this has long been a feature of N++'s Find window, but it’s not a great solution IMO for how huge the Find window is.

  • 1 Votes
    5 Posts
    247 Views
    Tom_1978T

    @mpheath Your are a legend! Thanks. It works. :-)
    Unfortunately, my reputation is too low. That’s why I’m not allowed to give your post a positive vote.

  • How do I cancel column mode by moving the cursor?

    2
    0 Votes
    2 Posts
    163 Views
    Alan KilbornA

    @Brixter-Tabun

    c7bb2870-9282-4b38-885f-65ae9d45adc9-image.png

  • Adding more steps to an existing Macro

    12
    0 Votes
    12 Posts
    3k Views
    Alan KilbornA

    @Robert-Or-Janet-Diebel said in Adding more steps to an existing Macro:

    Are comments allowed in shortcuts.xml?

    You can do this:

    <Action type="1" message="2172" wParam="0" lParam="0" sParam="I am a comment!!!!!!!!" />

  • 0 Votes
    3 Posts
    134 Views
    PeterJonesP

    @Terry-R

    Sorry, I didn’t see it was a second copy when I approved the second.

    Conversation will continue in the other

  • Comment line style for user defined language

    36
    0 Votes
    36 Posts
    30k Views
    malan sanniM

    @Scott-Sumner So you mean just change the name?

  • Link to Edit with Notepad++ status/fix please

    5
    0 Votes
    5 Posts
    2k Views
    S

    @PeterJones Yes, the paths were accurate. I have Notepad++ installed on a secondary drive with %APPDATA% path turned off - if you recall that install option. I tried installing on the default drive/path to no avail. I have added the PATH in my Environment settings to the dll’s and app just in case as well.

    I wish there was a way to compare registries just for Notepadd++ with you. I’m glad it works for you, hopefully another method will present itself here. Thank you.

  • Can't decode byte 0x89 in position 0: ordinal not in range(128)

    4
    0 Votes
    4 Posts
    324 Views
    Mark OlsonM

    Don’t use editor.getText with binary files. Notepad++ treats the file’s text as a NUL-terminated string for the purposes of that command, and most other text-retrieving commands. Apparently there are some ways for a plugin to get around this, but they are undoubtedly much more arcane.

    Have I ever mentioned how irritated I am that Don Ho refuses to implement a system for warning people that NPP is an inappropriate app for working with binary files?

  • Open file to most recent edit

    2
    0 Votes
    2 Posts
    145 Views
    PeterJonesP

    @afk-afk ,

    The closest command line option is -n# to take you to a specific line. If you pick a number that’s more than the number of lines (like -n999999), then it will scroll to the end.

  • How to style URL?

    4
    0 Votes
    4 Posts
    465 Views
    I

    @IstvanZachar Issued a feature request for styling URL-s here.

  • plugin admin not appearing

    5
    0 Votes
    5 Posts
    2k Views
    Dog five meD

    @PeterJones @Terry-R
    i opened notepad++ to do some coding for my website and tyo get the rest of the debug info and suddenly my notepad++ decided to work properly and have all the missing things appear i haven’t done anything. so sorry for wasting everybody’s time

  • [8.7.1] File doesn't open expected file in list

    10
    0 Votes
    10 Posts
    316 Views
    xomxX

    @Alan-Kilborn said in [8.7.1] File doesn't open expected file in list:

    In this case, even though files are being closed, they aren’t saved in the “recent files” list. There must be something in the code that prevents this from happening during closure via shutdown.

    https://github.com/notepad-plus-plus/notepad-plus-plus/blob/de1a04038b45df4e25f81f8bef1008b5a978106d/PowerEditor/src/NppBigSwitch.cpp#L2694

  • File does not exist.

    11
    0 Votes
    11 Posts
    886 Views
    Mark OlsonM

    BTW my HugeFiles plugin is more feature-rich and actively maintained than BigFiles.

  • How to remove this symbols from txt file

    10
    0 Votes
    10 Posts
    2k Views
    dr ramaanandD

    @mohammad-Al-Maaitah if your first and last symbol is symbol.PNGyou can type \x16.*?\x16 in the Find field, tick the regular expression mode, leave the Replace field empty and click Replace in files (to remove it from multiple files). That will help you get rid of all of those (and anything else in between). There are no spaces anywhere in the middle, so I am explaining the same to you

  • Can't find and replace text within multiple quotations

    6
    0 Votes
    6 Posts
    230 Views
    PeterJonesP

    Moderator restored the original post.

    Deleting a post after there have been replies is highly discouraged. There is nothing sensitive in the original post, so the post has been restored to maintain the history of this conversation:

    Don’t be embarrassed about having figured out the real problem: in internet help forums, there’s a whole category called “rubber duck debugging”, wherein just explaining the problem to someone else (ie, making your post) is enough to nudge your mind in the right direction, even without a reply – it’s nothing to be ashamed of. And thanks for letting us know you figured out your problem (so many times, people just go away after figuring it out, and never tell us whether we helped or whether we just acted as the rubber duck).

  • figuring how to create multiple pages on html for website

    2
    0 Votes
    2 Posts
    781 Views
    Terry RT

    @Pj-Doyle
    Your question seems to be related to html code and websites. Possibly you are using Notepad++ to generate this code, but as the issue isn’t really a Notepad++ issue you need to go to a HTML forum to get the answer.

    Can I refer you to this FAQ post here.

    Terry