• 0 Votes
    14 Posts
    653 Views
    Terry RT

    @Atheriol

    Sorry you feel that way. I said my response was intended as constructive. Notepad++ is full of lots of options and as I said, in order to understand and use them you need to have the basics sorted. You admit to not realising the difference between overtype and insert options. That is a basic premise of computer work.

    I wish you well.

    Terry

  • Add space after specific character at the beginning of sentence.

    8
    0 Votes
    8 Posts
    761 Views
    J

    @PeterJones said in Add space after specific character at the beginning of sentence.:

    @JajinderK said in Add space after specific character at the beginning of sentence.:

    The Template for Search/Replace FAQ, and the Formatting Forum Posts FAQ (linked below) explain more about how to format your posts for asking these kinds of questions.

    And the URL for the User Manual’s regex section will be indispensable for someone trying to actually learn how Notepad++ regex work.

    Thank you so much for the links. (I hope I won’t give up.)

  • Moveable multi-line carets

    25
    0 Votes
    25 Posts
    3k Views
    Alan KilbornA

    @Coises said :

    Since you apparently use that plugin,

    Actually… I only use it because I forgot I had it hanging around! :-)
    I’ve now disabled it and I will see if my workflow is impacted at all…

  • Search results filtering

    2
    0 Votes
    2 Posts
    133 Views
    Terry RT

    @SJW-SJW-SJW said in Search results filtering:

    How can I filter the search to ignore /vendor and /.git or any other directory which is irrelevant?

    The best method is to read the relevant portion of the manual. The online reference is here.

    There are a lot of settings which is why I suggested the online manual. It explains things much better than I can.

    Terry

  • Is there a way to open files in the left panel/view only?

    3
    0 Votes
    3 Posts
    614 Views
    T

    @Alan-Kilborn wow this is great, thankyou

  • Match everything except the text and <br> tags

    21
    0 Votes
    21 Posts
    1k Views
    dr ramaanandD

    @guy038 Okay, thank you!

  • problem with the tab key

    3
    0 Votes
    3 Posts
    135 Views
    bukatotB

    @PeterJones thanks for the fast reply, appreciate it.

  • Regex: Select only the first instance of search results / first match

    54
    0 Votes
    54 Posts
    43k Views
    dr ramaanandD

    On testing the above, I observed that both the above regular expressions work only for tags or strings that begin with a < and end with a > - so if you are searching for a string between inverted commas, to find the first string, you should use the regular expression (?s)\A.*?\K"string(?:.*?)?"

  • How to find and replace the last occurrence of a tag ?

    6
    0 Votes
    6 Posts
    247 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • I want to automate editing a json config file?

    2
    0 Votes
    2 Posts
    252 Views
    PeterJonesP

    @Matty-Lad,

    It depends on how automatic you want it.

    If you are willing to open Notepad++, open the file, and run a macro to do a replacement, that can be done with native Notepad++ (see below).

    If you want to have notepad++ already open, but have it automatically open the file, you cannot do that in a macro; however, you could install a scripting plugin like PythonScript, and do something that automatically opens the file, runs the replacement, saves, and closes the file again.

    If you choose to go the macro route, you can setup the Macro using the following sequence:

    Macro > Record Macro Search > Replace
    FIND WHAT = "sparse_infill_pattern": "gyroid"
    REPLACE WITH = "sparse_infill_pattern": "gyroid"
    SEARCH MODE = Normal
    REPLACE ALL File > Save Macro > Stop Recording Macro > Save current recorded macro Give it a name, like BambuGyroid Optionally, give it a keystroke that you can remember OK

    From now on, using Macro > BambuGyroid (or the keystroke you chose) will run that specific replacement and save.

  • the html codes don't work:

    10
    0 Votes
    10 Posts
    4k Views
    PeterJonesP

    @Ashley-Smith ,

    its people like you that take a forum for learning and taint it

    I am sorry you feel that way. @essa-gamer thought my reply was enough to say “thank you”, so I’m not sure the original poster agrees with you. (Though, admittedly, it was pretty cryptic, as @Alan-Kilborn mentioned, and we don’t know which answer, specifically, was replied to with “thank you”)

    I actually care so much about learning that after coming here years ago and getting one good answer to my question, I decided to hang around and answer questions; over the years, I have answered thousands of questions, most of them to the original poster’s satisfaction (based on their direct comments, and them upvoting my answer), spending large portions of my free time helping other people, because I love Notepad++ so much and want to help others learn how to use it. Over that time, a percentage of users haven’t liked the way I occasionally answer, but the same happens any time any person is trying to help others in any public forum – it’s not just me, and it’s not just here. If I didn’t care about helping other people learn, I would have been gone years ago.

    WHEN WE ARE TYPING OUT OUR HTML CODES AND WE ARE SAVING THEM ACTIVELY AFTER ADDING MORE HTML AND CSS? It is not refreshing on the browser…

    Oddly enough, that’s not the only interpretation of the original question. I listed answers to multiple interpretations of the question, five years ago.

    But I’m going to assume that’s your question, so I will do my best to guess at your circumstances, and try to help you learn.

    If your browser has opened the local copy of the file (so it shows something like file://C:/blah/blah/blah.html in the URL address bar, then you just have to Refresh your browser (often Ctrl+R or F5, depending on browser) after you save in Notepad++ – but that’s not a Notepad++ question, because the same would be true no matter what editor you used to edit and save the html file.

    If you do that, and it still doesn’t match, you need to make sure that the path listed in the browser is the same as the path that Notepad++ has open – if Notepad++ saved to a different location, the browser won’t be able to see it.

    If your browser has an https://blah.blah.blah/blah/blah.html in the URL address bar, then you need to upload your file from your local machine to the webserver (as per my “to upload the file to a webserver” paragraph from five years ago) before the browser will be able to see the updates.

    Does this help you, or are your circumstances different than I’ve guessed?

  • Updation

    3
    0 Votes
    3 Posts
    147 Views
    dr ramaanandD

    @PeterJones Okay, thank you!

  • Convert XML data to tabular csv data or tab separated without a script

    14
    2 Votes
    14 Posts
    16k Views
    Kristijan BertaK

    For converting XML to CSV, I have written a blog post that outlines comprehensive methods, including flattening simple XML and normalizing complex, nested XML structures. It discusses multiple approaches, such as using Flexter for complex cases. Additionally, if you’re dealing with sensitive data, the Paranoid tool can help anonymize data before conversion. This makes it a practical solution for handling XML that contains private or confidential information while still achieving the necessary format transformation.

    If you want to find out more contact me or send me a direct message

  • inserire virgola e 1

    4
    0 Votes
    4 Posts
    208 Views
    massimo la terraM

    @Alan-Kilborn che bella la community grazie

  • disable Update Notification or silent Update

    2
    0 Votes
    2 Posts
    324 Views
    gerdb42G

    @endurance0
    You may want to have a look at https://npp-user-manual.org/docs/command-prompt/#installer-options. Maybe options /noUpdater and /S provide what you are looking for.

  • How to wrap selection by strings on both ends?

    7
    0 Votes
    7 Posts
    859 Views
    P

    @Alan-Kilborn: Thanks a lot! Being fluent with Python, I have installed the PythonScript, and I am learning first steps.

  • Bookmark folder locations

    5
    0 Votes
    5 Posts
    263 Views
    PeterJonesP

    @Edward-Wilson ,

    Can I ask something?

    There’s no reason to ask if you can ask, as it wastes everybody’s time (including yours – if you had already asked it, people could already be formulating an answer to your actual question, rather than spending time telling you that you can ask Notepad++ questions in a Notepad++ forum). If it’s an on-topic question about Notepad++, then go ahead and ask; if it’s not about Notepad++, then the obvious answer is no, you should not ask it in a Notepad++ forum.

    If your question is about bookmarking folder locations, you can ask it by replying to this Topic, like you did for your first post. If it’s about some other aspect of Notepad++, then either hit the New Topic button in the main Help Wanted section to ask a new question, or reply to an existing Topic that your question is specific to.

  • Format name and password from vertical to horizontal

    2
    0 Votes
    2 Posts
    451 Views
    PeterJonesP

    @gomasafrat ,

    The forum has a post-queue to prevent spammers: the post-editor told you this as you were creating your post. You don’t have to post it twice just because you didn’t see it show up visibly. I used moderator power to only approve the first version you posted, not the second version,

    Please use the </> on the post toolbar for marking your example text as “code”, which makes sure that the forum puts it in the box and doesn’t interpret text as formatting codes. I used moderator power to add in the markdown for you, so that people could read your text to help you, but in the future, you need to be the one to make your post readable.

    I cannot tell whether you really meant for there to be blank lines between each line of text, or if that was some artifact of the way you entered the text. You need to clarify this, otherwise the answers we give might not work for your actual data.

    I cannot tell whether you really intended for the word PASSWORD to be squished together with the username’s value in the first possible output format; if that’s what you want, it seems like a horrible idea to me, so I will assume you don’t actually want it that way.

    From a data security standpoint, you should never store passwords in plain text. If you are, you are either asking hackers to steal your list of passwords, or you are a hacker who has already hacked some site. The first is highly insecure, the second is immoral and likely illegal. I will assume this is just an example set of data, where you are trying to learn how to do that, and that you are neither practicing insecure behavior nor criminal behavior.

    Possible solution:
    FIND = (?-s)^(USERNAME=.*)\R+(PASSWORD=.*)$
    REPLACE = $1 $2
    SEARCH MODE = Regular Expression
    REPLACE ALL

    This should work whether or not you have the extra blank lines between each line.

    quick explanation:
    FIND:

    (?-s) = makes sure you are not in . matches newline mode, no matter what the setting is in your REPLACE dialog ^ = matches beginning of the line (so USERNAME= must be at the start of the line, no blank space or other characters before it (...) = store whatever is matched inside in a group for the replacement. There are two of these, so you have group1 and group2 .* = match 0 or more of any type of characters \R+ = match 1 or more newline sequences $ = match the end of the line, so group2 will go all the way to the end of its line

    REPLACE:

    $1 = use the contents of group1 $2 = use the contents of group2 since the newline sequences between the groups weren’t in any group, they won’t end up in your replacement

    The references below – especially the User Manual’s regex docs – will help you learn more about regular-expression searching.

    ----

    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
  • can't install plugins

    7
    0 Votes
    7 Posts
    662 Views
    Narwhals MustBeSavedN

    @Coises I figured it out! I had to put the DLL in the plugin folder and then install the plugin from notepad++ that way

  • 0 Votes
    2 Posts
    206 Views
    PeterJonesP

    @Kyung-Sik-Yang ,

    You provided a screenshot, but I am doubtful any of of the regulars here have enough experience with Korean to understand what you seem to think is wrong with the above. Maybe a better description will help.

    But I will try some wild guesses, to see if I can be of some help to you.

    Assuming you are trying to show that a few of the glyphs on the left are showing up as a ? in Notepad++:

    if you did a bad encoding conversion, where the destination encoding didn’t have a codepoint for your source character. For example, if you took text ☺ U+2640 SMILE, and tried to use Encoding > Convert to ANSI, it would change from
    395a185d-610f-4a8b-ae32-42fa7d7fbda1-image.png
    to
    ? `U+2640` SMILE
    3b7eb59d-6e7c-47de-ad46-4d3d1c193647-image.png
    because there is no glyph in ANSI for the ☺ smile character. Similarly, if you tried to paste that text into a file that was already an ANSI file, it would do the same conversion to ? `U+2640` SMILE so maybe you are trying to convert text into or paste text into an encoding that doesn’t have a codepoint for the Korean character that becomes the ? Or maybe your chosen font for Notepad++ doesn’t include glyphs for those characters (but I think it would be an empty square box, not a question mark). Using Settings > Style Configurator > Global Styles > Default Style to pick a different font which you know has that glyph might solve the problem. (Or maybe changing the Settings > Preferences > MISC > ☐ Use DirectWrite and restarting Notepad++.) Or maybe it is showing something like one�two – which would indicates that it was trying to decode some bytes from your file as a unicode character, but it wasn’t a valid unicode character, so it displays the � symbol to indicate a data input problem. This might indicate that your original file has some bad bytes (either because something was corrupted, or because the application that created your text file made a mistake).