• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • S

    Backup not updated

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 23, 2023, 4:34 PM
    Dec 23, 2023, 5:48 AM
    1 Votes
    2 Posts
    412 Views
    M Dec 23, 2023, 4:34 PM

    @Shenmue-is-life
    The FAQ Desk: Periodic Backup vs AutoSave article may be helpful.

  • E

    how to highlight the text between [] ?

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Dec 23, 2023, 3:15 AM
    Dec 22, 2023, 12:54 AM
    0 Votes
    4 Posts
    2k Views
    E Dec 23, 2023, 3:15 AM

    Mark-Olson Thanks for the answer, but I need it to last between sessions

    PeterJones Thank you very much, this is just what I needed, I will use a modified language for my workgroup

  • A

    hide scrollbar

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 22, 2023, 11:05 PM
    Dec 22, 2023, 9:27 PM
    0 Votes
    2 Posts
    438 Views
    P Dec 22, 2023, 11:05 PM

    @Andre-Silva-0 ,

    The scrollbar in the editor portion of Notepad++ GUI is always on, even when there’s nothing to scroll. The Search/Replace dialog doesn’t have a scrollbar. And the Search Results window will only have a scrollbar if there’s more than one panel’s worth of text.

    If you are asking about how to code HTML to use or not use scroll bars, or how to code in [insert programming language here] to not use a scrollbar, that has nothing to do with the Notepad++ editor. We have a FAQ explaining why coding questions are off-topic, even though you’re typing the code with Notepad++.

  • H

    Change toolbar icon theme

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 21, 2023, 6:54 PM
    Dec 21, 2023, 6:15 PM
    0 Votes
    2 Posts
    1k Views
    P Dec 21, 2023, 6:54 PM

    @hhjarppfh said in Change toolbar icon theme:

    if I replace standard icons which are bitmaps it will work but the original fadeout effect (when the icon is disabled / faded out) will disappear.

    I disagree. The User Manual section on Toolbar Icon Customization includes instructions for how to replace the full set of toolbar icons, including the “disabled” versions for save, save all, cut, copy, paste, undo, redo, file monitoring, and the various macro buttons.

    But how on earth do I rename the theme? It would still show up as fluent in the preferences.

    (Aside: “Theme” is not the right term. “Theme”, in Notepad++, refers to the editor panel’s color scheme, as defined by the Style Configurator. Notepad++ doesn’t really have a word for a “set of toolbar icons”, so I used “set” in the user manual.)

    For the icons, either you choose one of the 5 built-in groups, or you have your custom icons enabled with the toolbarIcons.xml to enable them. If you want to “name” them, you can have different subdirectories (the user manual uses the example of myAwesomeIcons; the nppLegacyIconSet zipfile that you can get from the 8.4.2 release page contains examples of nppLegacyIcons\, message\, and kidsIcons\) and then you just call out the subdirectory name in the toolbarIcons.xml file.

    You cannot change enable/disable/switch the custom icon set from within the Notepad++ GUI – you have to exit Notepad++, edit or delete toolbarIcons.xml, and restart Notepad++. This was meant as a set-once-and-forget, not a change-often configuration, so the developer decided against a way to change them in the GUI.

    —

    For example, here’s a screenshot of using the “message” set of icons from that zipfile:
    ecb6ec56-5a8b-4142-952a-de5575c1dfb8-image.png

    There is nothing to save, so Save button is disabled; because there is no icon message\save_disabled.ico in that bundle, it defaults to the "disabled"version of Save from the active Settings > Preferences > Toolbar setting.

    If I type something, then there is something to save, and it un-disables, showing the icon from the set:
    48c070e2-1e01-47d9-85f9-0b388a728031-image.png

    But since there is a message\redo_disabled.ico, the Redo button correctly shows disabled using that icon, from the beginning.

    If you have all 45 of the icon files in the folder referenced by toolbarIcons.xml, then the enabled/disabled will work on all the ones that have both states defined.

  • H

    Need help with adding </i> to the end of multiple different strings.

    Watching Ignoring Scheduled Pinned Locked Moved
    17 Dec 21, 2023, 11:58 AM
    Dec 19, 2023, 2:24 PM
    2 Votes
    17 Posts
    1k Views
    A Dec 21, 2023, 11:58 AM

    @guy038 said:

    Paste the following text in a new tab … Each line is repeated with the 3 possible line-breaks ( \r\n, \n, and \r )

    For me, at least, the line ending types indicated didn’t carry over in the copy, that is, I got this:

    b57e3295-ffa2-4686-aaa5-caaf59887fdf-image.png

    It’s not really a problem, but to carry on from that point to replicate what @guy038 is testing, one should manually adjust the line-endings before continuing.

  • R

    Fold Issue in Verilog mode

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Dec 21, 2023, 10:13 AM
    Sep 8, 2023, 11:13 AM
    0 Votes
    13 Posts
    1k Views
    R Dec 21, 2023, 10:13 AM

    @mkupper , @rdipardo and @PeterJones Thank you all for suggesting the workarounds. Actually this is a way old legacy code and now i had a task to implement a new feature to it. after seeing the folds i too got confused and lost track where loop ends or starts and which part of code is in nested macro. I have given a snippet of the requirement but code is 25k lines with nested macro and begin end . So i have created the request. Sorry for very late reply i got the update from lexica website and didn’t checked here to update and close here.

  • D

    Find/Replace multiple lines

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 20, 2023, 6:47 PM
    Dec 20, 2023, 6:43 PM
    1 Votes
    2 Posts
    533 Views
    P Dec 20, 2023, 6:47 PM

    @Dave-C-1 said in Find/Replace multiple lines:

    Can this be done in one pass?

    Using regular expression search, yes.

    FIND = 2 NOTE GRID=(\d+)
    REPLACE = 2 ADDR $1\r\n$0

    In the FIND, the (\d+) says "find one or more digits and put in group#1)
    In the REPLACE, the $1 says “use the contents stored in group#1” and the $0 says “use the full matched text”

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
  • H

    REGEX: Combine the two lines on a single line

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Dec 19, 2023, 4:43 PM
    Dec 17, 2023, 2:40 PM
    0 Votes
    9 Posts
    808 Views
    H Dec 19, 2023, 4:43 PM

    @Mark-Olson said in REGEX: Combine the two lines on a single line:

    FIND: (?s-i)(?:<meta[^<>]*content\s*=\s*"|(?!\A)\G)[^"]*?\K\R
    REPLACE BY: (leave empty)

    super. thanks

  • D

    Regex: Find Pages with One String but Not Another

    Watching Ignoring Scheduled Pinned Locked Moved regex
    18 Dec 19, 2023, 3:57 PM
    Dec 7, 2023, 5:53 PM
    0 Votes
    18 Posts
    3k Views
    Mark OlsonM Dec 19, 2023, 3:57 PM

    @guy038
    Looks good! I’d amend it to (?s-i)\A(?=.*(?:Bob|Peter|John))(*COMMIT)(*FAIL)|Mary|Helen|Alice, as this ensures that the check for the forbidden names is only done once at the beginning of the file, and thereby avoids the issue of bad performance on very large files.

  • isntworkdullI

    find "value": "word or two or three" replace with "value": "?"

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Dec 19, 2023, 2:17 PM
    Dec 19, 2023, 2:08 PM
    0 Votes
    3 Posts
    644 Views
    isntworkdullI Dec 19, 2023, 2:17 PM

    @PeterJones said in find "value": "word or two or three" replace with "value": "?":

    “value”: “[^”\r\n]*"

    perfect - I would never have got to that!!

    thank you

  • TuiSilvaT

    Auto Complete feature is not working properly

    Watching Ignoring Scheduled Pinned Locked Moved
    15 Dec 18, 2023, 11:23 PM
    Dec 16, 2023, 1:58 PM
    1 Votes
    15 Posts
    2k Views
    TuiSilvaT Dec 18, 2023, 11:23 PM

    @PeterJones said in Auto Complete feature is not working properly:

    Nope. This Forum is about Notepad++, not a generic help forum for programming.

    OK, thanks for letting me know :)

  • Volker MennekingV

    using search-replace possibly with wildcards?

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Dec 18, 2023, 6:50 PM
    Dec 18, 2023, 6:10 PM
    0 Votes
    3 Posts
    561 Views
    Volker MennekingV Dec 18, 2023, 6:50 PM

    @PeterJones said in using search-replace possibly with wildcards?:

    Template for Search/Replace Questions

    Thank you very much. It funkt.

  • Volker MennekingV

    [NppFTP] Cannot start FTP session

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Dec 18, 2023, 6:06 PM
    Dec 18, 2023, 1:38 PM
    0 Votes
    6 Posts
    447 Views
    Volker MennekingV Dec 18, 2023, 6:06 PM

    Thank you for this detailed answer. Actually I just needed the correct download link. Sorry, I probably should have asked the question more precisely. The fact is: with release v30.17 Notepad++ works again. Merry Christmas and a Happy New Year

  • Mario ChávezM

    Bookmark line becomes unchecked on reopening application

    Watching Ignoring Scheduled Pinned Locked Moved bookmarks
    7 Dec 18, 2023, 11:34 AM
    Feb 11, 2022, 6:18 PM
    0 Votes
    7 Posts
    2k Views
    A Dec 18, 2023, 11:34 AM

    @Alan-Kilborn said in Bookmark line becomes unchecked on reopening application:

    not sure why this text seems to have a Alt+h keyboard accelerator as I don’t see how you can use it in Notepad++'s UI.

    One more thing I’m not sure of: Why I had said that.
    If a control in the Incremental Search window has input focus, e.g. the Find edit box, then Alt+h will focus and toggle the Highlight all checkbox setting.

  • 한승호한

    How do I delete only the second line from multiple text files?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 16, 2023, 2:50 PM
    Dec 16, 2023, 2:13 PM
    0 Votes
    2 Posts
    189 Views
    A Dec 16, 2023, 2:50 PM

    @한승호

    Find: (?-s)\A.*\R\K.*\R
    Replace: nothing
    Search mode: Regular expression
    Action: Replace-in-Files

  • A

    Bulk Editing Values in XML Files

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Dec 16, 2023, 1:42 AM
    Dec 15, 2023, 11:10 PM
    1 Votes
    4 Posts
    2k Views
    A Dec 16, 2023, 1:42 AM

    @Coises

    This is exactly what I was hoping for. Python is well and good, but I haven’t dived into it for good reason. Thanks for letting me know this exists ^.^

  • Austin GilliamA

    JSON tools for viewing and editing

    Watching Ignoring Scheduled Pinned Locked Moved jsonviewer
    4 Dec 16, 2023, 1:15 AM
    Dec 15, 2023, 9:40 PM
    1 Votes
    4 Posts
    95k Views
    Mark OlsonM Dec 16, 2023, 1:15 AM

    @Austin-Gilliam
    It looks to me like your JSON is a JSON string representation of a JSON array. This means that the parse() RemesPath function (follow that link, then find the parse() function) will help you. It attempts to parse a JSON string, and returns an object that either has result: (the result of parsing) or error: (the error that caused parsing to fail). Note that this function was added in a pretty recent version (v5.5.0), so you might want to get the latest version if that query fails.

    Here’s an image of what we get with your JSON.

    1191f8b3-c9b2-4d98-b544-5511e06b6143-image.png

    As you can see from the treeview on the right, the parse() function worked. Since we know it’s successful, I’ll just change the query slightly, to parse(@).result (which extracts the result value). Now I just click the Save query result button above the tree, and the parsed array is saved in a new buffer. The contents of this buffer will be as follows:

    { "FastenerData": { "508670": {"Item1": "10", "Item2": "50"}, "508674": {"Item1": "10", "Item2": "50"} } }

    By the way, I’m the maintainer of JsonTools, and you can always raise an issue in the repo (linked here) if you need help. But this is a fine place to do it as well.

    @PeterJones
    I’m pleased to see that you noticed the potential of Dump JSON string(s) as raw text in this situation. I was just about to mention it, but I saw you beat me to the punch.

  • isntworkdullI

    batch changing png image to same as filename

    Watching Ignoring Scheduled Pinned Locked Moved
    8 Dec 15, 2023, 7:47 AM
    Dec 14, 2023, 12:46 PM
    1 Votes
    8 Posts
    582 Views
    Terry RT Dec 15, 2023, 7:47 AM

    @Coises
    I like it, only issue is you forgot to return the .png in the replacement field. That is unless you meant for the Find What to use a lookahead?

    Just goes to show that although regex can’t count it can be made to do some wonderous things nobody would have believed if they didn’t see it for themselves.

    Terry

  • 2

    Failed to display text using simultaneously combined Chinese fonts characters Correctley

    Watching Ignoring Scheduled Pinned Locked Moved
    12 Dec 15, 2023, 12:24 AM
    Dec 9, 2023, 7:03 PM
    1 Votes
    12 Posts
    1k Views
    2 Dec 15, 2023, 12:24 AM

    @mkupper

    Well Tank you very much for the time you have spent on it.
    It was an analysis which I myself did not think of it.

    I don’t have much knowledge in this field maybe browsers or web pages like this use Woff or something like that.

    By the way TYSM.

  • M

    Show/hide the toolbar

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Dec 14, 2023, 8:57 PM
    Dec 14, 2023, 8:32 PM
    1 Votes
    2 Posts
    2k Views
    Michael VincentM Dec 14, 2023, 8:57 PM

    @mkupper said in Show/hide the toolbar:

    I have PythonScript 2 installed and so if toggling the toolbar state between hidden and standard is possible then some example code would be great.

    Easy enough:

    notepad.hideToolBar(True)

    To unhide, just pass False instead.

    Cheers.

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors