• Question about programming language

    2
    1 Votes
    2 Posts
    241 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
    433 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
    5k 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
    214 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
    855 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
    248 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
    49k 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
    427 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • I want to automate editing a json config file?

    2
    0 Votes
    2 Posts
    404 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
    259 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
    348 Views
    massimo la terraM

    @Alan-Kilborn che bella la community grazie

  • disable Update Notification or silent Update

    2
    0 Votes
    2 Posts
    645 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
    450 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.