• Copy MS Word endnote text to Notepad++

    4
    0 Votes
    4 Posts
    458 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
    2k 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

  • 0 Votes
    14 Posts
    2k 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
    1k 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
    6k 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
    229 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
    935 Views
    T

    @Alan-Kilborn wow this is great, thankyou

  • Match everything except the text and <br> tags

    21
    0 Votes
    21 Posts
    2k Views
    dr ramaanandD

    @guy038 Okay, thank you!

  • problem with the tab key

    3
    0 Votes
    3 Posts
    267 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
    50k 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
    467 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • I want to automate editing a json config file?

    2
    0 Votes
    2 Posts
    437 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
    5k 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
    279 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
    19k 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
    375 Views
    massimo la terraM

    @Alan-Kilborn che bella la community grazie

  • disable Update Notification or silent Update

    2
    0 Votes
    2 Posts
    724 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
    1k 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
    481 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
    749 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