• posting help

    5
    0 Votes
    5 Posts
    422 Views
    Alan KilbornA

    @Bob-Smith said in posting help:

    so I could share pictures

    If you’re trying to share screenshots illustrating your Notepad++ problem, just copy them to the clipboard and paste directly into your posting.

  • NON utf-8

    6
    0 Votes
    6 Posts
    514 Views
    CoisesC

    @dr-ramaanand said in NON utf-8:

    I have the same problem. How to make those Chinese and other characters readable again like before?

    Based on the original poster’s comment, I don’t think it is the same problem. The original poster apparently wanted to identify characters that wouldn’t save properly in non-Unicode files so he could remove or replace them. My solution is only partial (it doesn’t take into account what non-ASCII characters are available in his default code page, and therefore perhaps would not need to be removed), but we’ll have to wait to see if he responds to know if he needs more ideas.

    I recommend you post this as a new question, as it appears to be different from the problem under discussion here. In any case, we will need more information. Since you write “like before,” part of that information should be what changed between “before” and “now.” Please be sure to include the information from ? | Debug Info… | Copy debug info to clipboard when you post.

  • 0 Votes
    33 Posts
    15k Views
    Maria BenichM

    @Maria-Benich Thank you! It worked perfect!

  • UI hangs when doing a large search-in-files

    3
    2 Votes
    3 Posts
    446 Views
    Alan KilbornA

    @James-John-McGuire

    Maybe give an example of the search you’re attempting.
    Probably only knowing the circumstances better can others offer advice on how to possibly improve things for you.

  • How to find out what txt files were open in the last session?

    10
    0 Votes
    10 Posts
    1k Views
    Richard HydrickR

    First, open the Sessions.xml within the below folder and it will show you all the files that were open. In my case it was just before my computer crashed as I just recovered from a failed TPM on my computer but the drive was still good.
    (*C:\Users\Username\AppData\Roaming\Notepad++*)

    If you can gain access to your old drive copy the folder backup and move to your new instance of Notepad++ copying to the same file location above, then select all documents within and open with Notepad++ and you will have all your saved and unsaved notes.

    Hope this helps.
    Richard

  • Smart Highlight not working

    11
    0 Votes
    11 Posts
    663 Views
    Lycan ThropeL

    @Ekopalypse ,
    Bingo, we have a winner. I have no idea why that color was selected as the same background, or…it was by default and then when I changed my background color to what it is now, the conflict occurred. I never noticed it, but I’ve changed it to a cyan, and it does show up now.

    Thanks for that catch.

    Thanks to all for their suggestions, and maybe the OP can now check his settings to solve his problem.

    OP, might have the same problem. If you notice, the first with has different coloring than the others, I suspect the result of the current selection color choice being melded with the SmartHighlighting background color.

    871HighlightFix.PNG

  • Odd (?) caret placement with auto-indent

    18
    3 Votes
    18 Posts
    949 Views
    CoisesC

    @Alan-Kilborn said in Odd (?) caret placement with auto-indent:

    In theory I would turn basic auto-indent on for “normal” text files, to get the benefits of a “fix” for such files. However, for Python and C++ files, I want/need advanced auto-indent. But, I can’t do this (again, it’s global: basic OR advanced).

    The code for Auto-indent: Advanced splits into three cases: C-like languages, Python and everything else; everything else uses the same code as Basic. The same change I proposed for Basic could be made there.

    The reason I separated the two cases is that what I propose doing to Basic is simple and straightforward. I want to ignore the configured indent settings and just duplicate the indentation of the previous line. I was able, with reasonable confidence, to devise a commit which I believe implements that without causing side-effects.

    The code for Advanced (except when it falls back to Basic) is far more complex, and of course it can’t ignore the indentation settings. The reason I didn’t suggest applying my change for Basic to Advanced when it falls back to Basic is that Advanced doesn’t just copy the existing indentation, it recomputes it, whether it is changing or not, according to the indentation settings (tabs or spaces). I thought it might be bizarre to have Auto-indent: Advanced sometimes change the indentation style to match the configuration and sometimes not.

    I suggested something as to how Auto-indent: Advanced could be changed to fix the specific problem you mentioned, but I did not give an example commit, because I have not yet been successful at creating one. So far, for each attempt I’ve made I’ve quickly found some unwanted side-effect.

    Part of the difficulty, also, is that after some experimentation with the unmodified version, there are some corner cases for which I do not follow the logic of the current behavior (or if some of that might be unintended). Example:
    void func() { return; }
    Start with that in language C++. The results of placing the caret after { and pressing Enter, then placing the caret after ; and pressing Enter are not the same as the results of placing the caret after ; and pressing Enter, then placing the caret after { and pressing Enter. In the latter order, the blank in “; }” is not absorbed; however, if you start with the line indented one level and do the same thing, the blank is absorbed. Either way, the caret winds up at the beginning of the line, as per your initial complaint.

  • Shortcut or menu path to "Rotate to right/left"

    18
    1 Votes
    18 Posts
    4k Views
    deleeleeD

    @Ekopalypse said in Shortcut or menu path to "Rotate to right/left":

    @deleelee

    UPDATED VERSION

    from ctypes import wintypes, WinDLL from Npp import notepad class ViewRotator(): def __init__(self): self.LOWORD_LEFT = 2000 self.LOWORD_RIGHT = 2001 self.WM_COMMAND = 0x111 self.toggle_rotating_direction = False self.npp_hwnd = WinDLL("user32").FindWindowW(u'Notepad++', None) self.splitter_hwnd = WinDLL("user32").FindWindowExW(self.npp_hwnd, None, u'splitterContainer', None) self.send = WinDLL("user32").SendMessageW self.send.argtypes = [wintypes.HWND, wintypes.UINT, wintypes.WPARAM, wintypes.LPARAM] self.send.restype = wintypes.LPARAM # LRESULT def rotate(self): if not notepad.isSingleView(): if self.toggle_rotating_direction: self.send(self.splitter_hwnd, self.WM_COMMAND, self.LOWORD_RIGHT, 0) else: self.send(self.splitter_hwnd, self.WM_COMMAND, self.LOWORD_LEFT, 0) self.toggle_rotating_direction = not self.toggle_rotating_direction if not hasattr(notepad, "rotateSplitView"): notepad.rotateSplitView = ViewRotator().rotate notepad.rotateSplitView()

    Wowsers!!! That is perfect. Thank you so much.

  • ChatGPT failed to help me replace....

    3
    0 Votes
    3 Posts
    349 Views
    Pulamea PulataP

    @Coises I found the solution before my post was even allowed by the moderation team , I make websites my client is an official partner of x website and is allowed to sell their products , and is way faster to scrape them and import them than ask them for the exported products since the sites are made in different platforms

  • separate to a NEW file

    4
    0 Votes
    4 Posts
    174 Views
    PeterJonesP

    @Mostafa-Kamal ,

    if it’s a one-time action, @Terry-R’s suggestion is spot on, and you don’t need to read my post.

    However, if it’s an action you are going to take a lot, I would suggest recording a macro:

    Macro > Start Recording Search > Mark FIND WHAT: \d{3}$ (this assumes it’s always a digit, like in your example; if it is just the last three characters, whether it’s digit or not, then .{3}$ instead Uncheckmark Bookmark line Checkmark Purge for each search Mark All Copy Marked Text Clear all marks Close File > New Edit > Paste Macro > Stop Recording Macro > Save Current Recorded Macro Give it a name that makes sense to you (CopyLastDigitsToNewFile or something) Give it a keyboard shortcut if desired.

    From now on, you can run the macro to copy those last digits/characters to a new file.

  • Trouble downloading Notepad++

    2
    0 Votes
    2 Posts
    682 Views
    PeterJonesP

    @Alex-Martin said in My First Taste Of HTML Code:

    How on earth do you download Notepad plus plus?

    You go to the official downloads page, find the most recent version (at the top, currently v8.7.1), and on the page for that, click the “installer” link (which for v8.7.1 is here). Once you have the installer, you have to run it.

    Ive tried it 3 times, the last 2 versions, and nothing
    shows up on windows.

    Sounds like user error to me.

    Zed Shaws book ruby the hard way, page 7. Stuck on 1. Where is the program???

    Finding the table of contents for that book online, and seeing that it’s the “getting things setup” instructions, I am assuming it suggests Notepad++ (which is awesome). But I have no idea what instructions it might give, or why you are having difficulty following those instructions.

    BTW: Your question had nothing to do with the blog post you replied to; you should have created a new question in “Help Wanted” instead of replying to an unrelated discussion. As a result, I moved it from there to here.

  • duble space like tabulate add/delete

    2
    0 Votes
    2 Posts
    118 Views
    dr ramaanandD

    @kuzduk-kuzduk one of us can help you do that with a regular expression (add or delete anything with one click) if you mention the beginning of these paragraphs and if they are unique.

  • ANSI X12/EDIFACT document viewing

    10
    0 Votes
    10 Posts
    13k Views
    PeterJonesP

    @mkupper ,

    The image has inexplicably disappeared off the server: I don’t know why. (And if you refresh your browser on the full URL, I think it will be 404 as well) I might have to try to regenerate it…

  • Notepad++ Adding Strange text after pasting

    10
    0 Votes
    10 Posts
    4k Views
    Testing TesterT

    @Dee-Neely Thank you Dee, for pointing to this plugin. Most likely it was activated unintentionally by pressing Ctrl+Shift+C.
    Cheers, Ronnie

  • UDL: Number groups with negatives

    3
    1 Votes
    3 Posts
    151 Views
    P

    @PeterJones Looks like that solved the issue, thank you!

  • 1 Votes
    12 Posts
    587 Views
    gamophyteG

    @Terry-R Excellent!! Thank you!

  • How to add a missing line, based on part of the previous line

    13
    -1 Votes
    13 Posts
    425 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • Question about programming language

    2
    1 Votes
    2 Posts
    128 Views
    PeterJonesP

    @IronWalkers ,

    Language > I > INI file

    a97dc2ec-7270-424f-9454-73c8ae1f75c8-image.png

    Though if you have any = in the “textlines under the [name]”, the = will be red and the text to the left will be blue italics (in the default styerls.xml theme; your selected/customized theme may use different colors):
    335c9aac-8799-4504-9152-0d64750c4dc9-image.png

    If you don’t like the = behavior , then you could define a simple UDL instead of using the built-in INI language: in Language > User Defined Language > Define your language, create a new language (named AI Music or something); leave most as the default settings, but on the Operators & Delimiters page, for Delimiter 1 style, set Open = [ and Close = ], and set the Styler to your preferred color (bold and purple to match INI, or whatever you want).

  • Copy MS Word endnote text to Notepad++

    4
    0 Votes
    4 Posts
    203 Views
    Terry RT

    @Joel-Bridgham said in Copy MS Word endnote text to Notepad++:

    Is there a way to do this?

    You need to understand that the endnote function in MS Word has no parallel in Notepad++. It acts in a similar fashion to a hyperlink. So as the endnote text doesn’t actually appear alongside the words you are copying you will not be able to copy in a single step all that you want.

    I did a few basic tests with endnotes including saving the Word file as “plain text”. Unfortunately it still didn’t place the reference alongside the text that referred to it. So you will need to identify yourself what might work as obviously what you have currently tried will not work. You might even consider creating a Word macro to find each reference link, then copy that endnote and pasting alongside the text that referenced it. Essentially you will be removing the endnotes by moving that endnote to it’s rightful place. As this would be a destructive process I’d say work on a copy of the file.

    Notepad++ is a text editor so obviously works in a completely different way to Word which is a word processor.

    Terry

    PS a quick Google search found this website (a MSoffice forum no less). See here. I will leave it up to you to read, decipher and consider if it is what you want to try. As it’s not about Notepad++, further discussions on this Word function isn’t permitted here. Good luck.

  • Since updat strong flickering

    7
    0 Votes
    7 Posts
    1k Views
    rdipardoR

    @CptTwinkie, @rwblues

    The flickering probably means that DirectWrite rendering is not enabled:

    385552490-cef0cac0-2a39-4b33-8cc7-5360f501c3f3.png

    SciTE is another Scintilla editor with the same issue when DirectWrite is off (meaning, the technology option is 0).

    scite-553-no-D2D.gif