• UDL: Overloaded folding close keywords

    Locked
    10
    2 Votes
    10 Posts
    2k Views
    Meta ChuhM

    @rossjparker

    But I did find what appears to be the perfect solution by trial and error. Use single quote characters (’) to specify multi word open/closing folding in markers instead of double quotes (").

    nice find (i’ve just tried out your solution) and very embarrasing that i did not try that (') out beforehand 🤭

    thank you for your own, working solution and for sharing. 👍
    if you like, stick around here in the future, either for casual reading, or to participate on anything of interest to you. you are always welcome.

    greetings, meta chuh

  • Replacing values in multiple documents all with different values

    Locked
    5
    0 Votes
    5 Posts
    983 Views
    Alan KilbornA

    @Meta-Chuh said:

    but you are getting better

    …and that is long overdue

  • Autocompletion with MyClass.myFunc

    Locked
    4
    0 Votes
    4 Posts
    787 Views
    Jim DaileyJ

    @m-c0de

    I think that after you select MyUtils, you will have to type a period for the autocomplete to begin suggesting things that begin with MyUtils.. Other than that, I would expect it to work as you desire.

    I don’t think size will be a problem for you. My “C” auto-completion file is almost 3.5 Megabytes and works very well. Currently it includes 3230 UEFI function definitions extracted from .h files and 463 keywords! Obviously I didn’t do this by hand; I wrote an AWK script that I use to generate a new (updated) auto-completion file periodically.

    Keep in mind that you have to keep the entries sorted alphabetically. If you get something out of order, then you may never see a portion of your entries (but you will not get any kind of error message).

  • batch function - need to add filename at the end of each paragraph

    11
    0 Votes
    11 Posts
    6k Views
    Meta ChuhM

    @Terry-R @guy038 and all

    @Terry-R: I think at this point we await a reply from @Marina-Susan on whether any of our solutions has helped, or whether she wants to supply more examples so we could (better) help her.

    i second that, and i guess this thread became another “after work” playground of ours 😉
    albeit some of those playgrounds for regulars, have been very productive lately, due to a higher, non simplified, level of information exchange 👍

    i hope @Marina-Susan does not mind (@Marina-Susan you can kick in with any questions anytime)

  • 0 Votes
    6 Posts
    3k Views
    Meta ChuhM

    @Barry-Bluefeld

    intriguing, pasting rtf to write usually works on all systems.
    i’m sorry to hear that not even write.exe worked for you.

    please try one more quick thing, before you file an issue report at the link at the bottom of this post.
    just to make sure that notepad++ is able to correctly export formatted content to your clipboard at all.

    close notepad++ if it is open

    download this pre-built portable notepad++ npp.7.6.3.bin.zip from >>> here <<<.
    (this is a portable, ready to go version for testing. it works completely isolated from, and independent to your current notepad++ installation and independent to all your plugins. it already includes nppexport, and helps to eliminate any problems caused by your current installation)

    extract npp.7.6.3.bin.zip onto your desktop and open the resulting folder npp.7.6.3.bin

    double click on notepad++.exe to run this

    open any of the files you have tried before, select any part of it, and try to use plugins > nppexport > copy rtf to clipboard again.
    note: there should not be any error messages at the right bottom of the screen, or anywhere else, while doing this

    paste it to write.exe

    if pasting rtf to write does not work now, there’s a possibility that some problems of your windows installation is causing this behaviour.

    if you want to file an issue report, or contact one of the plugin’s developers, please visit this address:
    https://github.com/chcg/NPP_ExportPlugin/issues

    please keep us informed about any success or failure.
    especially as i have not been able to reproduce this behaviour on windows 10 pro x64 and windows 7 pro x64 using nppexport to rtf/html and pasting to ms word 2010-2016

  • HTML files wont open in Chrome

    5
    0 Votes
    5 Posts
    17k Views
    Giuliano GarauG

    Hmmm, odd. It works now. I did the same thing (copy the path ot chrome.exe) yesterday and it worked by ONLY opening Chrome and not the html page inside the browser.

    Yeah, actually chrome is not located in either of them. Im using Windows 10 64bit.

    Chrome.exe was actually located here:
    C:\Users\fine\AppData\Local\Google\Chrome\Application

    Here is my debug info:
    Notepad++ v7.6.3 (64-bit)
    Build time : Jan 27 2019 - 17:16:47
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : ON
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

    Anyway working for now, hope it will keep working otherwise I will be back . Thanks Meta Chuc :)

  • regex: find two different strings on two consecutive lines

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    guy038G

    Hello, @vasile-caraus, @eko-palypse and All,

    Here is, below, a similar regex S/R, with a look-ahead structure, which, also, preserves the indentation of the two lines, involved !

    So assuming the sample text, below :

    <p>&nbsp;</p> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_1"> <p>&nbsp;</p> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_2"> <p>&nbsp;</p> <p class="text_obisnuit">

    If we use :

    SEARCH (\h*)<p>&nbsp;</p>(?=\h*\R\h*<p class="text_obisnuit">)

    REPLACE \1<br><br>

    the above text becomes :

    <br><br> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_1"> <br><br> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_2"> <br><br> <p class="text_obisnuit">

    With the previous regex S/R, we would have obtained :

    <br><br> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_1"> <br><br> <p class="text_obisnuit"> <p>&nbsp;</p> <p class="text_OTHER_2"> <br><br> <p class="text_obisnuit">

    Note, also, that this new regex S/R works, whatever the line endings ( \r\n for me and \n for you )

    Best regards,

    guy038

  • Remove duplicate lines.

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    rinku singhR

    @Ripunjay-Sharma
    for notepad ++ v7.5.9 dir is

    for notepad ++ v7.6.0 dir is
    C:\Users\rinku\AppData\Local\Notepad++\plugins\NppTextFX\NppTextFX.dll
    for notepad ++ v7.6.1 dir is
    for notepad ++ v7.6.1 dir is
    C:\ProgramData\Notepad++\plugins\NppTextFX\NppTextFX.DLL
    for notepad ++ v7.6.3 dir is
    c:\program files (x86)\Notepad++\plugins\NppTextFX\NppTextFX.dll

  • CSS' syntax - grammar editor/corrector

    30
    1 Votes
    30 Posts
    13k Views
    Alan KilbornA

    @Demetrius-Pinheiro:

    I told you you’d like what the team here would come up with! :)

    @Demetrius-Pinheiro said:

    NP++ today without plugins, is not the best CSS’ editor (and in my opinion it never will be the best CSS’ editor).

    N++ doesn’t TRY to be this…not sure why you think it should be. There are much more specialized tools for this, or really any other non-general purpose text editing task, that can and will do better.

  • XML files opened as Session file

    9
    0 Votes
    9 Posts
    2k Views
    Jean-michelJ

    @guy038 Thank you Guy. It’s OK now, but if you use the workspace, you need also to change extension for workspace files.

  • Arduino and Function List

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    rinku singhR

    @rscgln said:

    Arduino Plugin

    download Notepad++.Arduino.0.2.0.zip from
    https://sourceforge.net/projects/narduinoplugin/
    it has contain README.txt and Arduino_Language_0.2.0.xml

  • Split file into multiple files

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Alan KilbornA

    @matt-bjerk

    Sounds like a task for a programming language. Notepad++ itself can do nothing to help, but you could certainly use one of its scripting language plugins to accomplish this.

  • mass edit and preserve timestamp?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Meta ChuhM

    @Offerel

    aaaaaaahh, nice idea to use dummy_file as a temporary timestamp reference file. 👍👍👍

    thanks for sharing 👍, i too think that it might come in handy for others.
    there are quite a few linux and mac users around here, including me.

  • How to end a batch of process ?

    Locked
    4
    0 Votes
    4 Posts
    920 Views
    Meta ChuhM

    @Chen-Yu

    i don’t know LaTeX either, but you could use taskkill (C:\Windows\System32\taskkill.exe) at the end of your scripts, as a workaround until you find a solution.

    for example taskkill /f /im pdflatex.exe will force end all instances of pdflatex.exe at once.

  • Is it possible to configure the status bar panels

    16
    1 Votes
    16 Posts
    4k Views
    ThosRTannerT

    Well, it won’t let me edit or delete my previous post, so here’s another attempt.

    Well, after much fiddling around, I have a python script that detects whether or not the status bar panel 0 starts with the string with which the linter plugin prefixes all messages, and if so collapses all the other items on the status bar, which means I don’t lose the text in them.

    I’m not entirely convinced about the way I find the current window handle in the first place, but it seems to work nicely.

  • 1 Votes
    2 Posts
    3k Views
    PeterJonesP

    Thanks for an example with both before and after. It helps.

    Find What = (?-s)^.*?:(?=.*:) Replace With = (empty) Search Mode = regular expression

    Search =

    (?-s) = turn off .-matches-newline (overrides the checkbox later in the dialog box) ^ = start the match at the beginning of the line .*? = match 0 or more characters before… : = a literal colon (?=.*:) = the colon must be followed by 0 or more characters and another colon, but don’t include this bit in the stuff to be replaced. If there isn’t a second colon on the line, it won’t match the earlier stuff, so no replace will occur for that line

    Replace up through the first colon with nothing, if the given line matches everything above

    -----

    FYI:

    This forum is formatted using Markdown, with a help link buried on the little grey ? in the COMPOSE window/pane when writing your post. For more about how to use Markdown in this forum, please see @Scott-Sumner’s post in the “how to markdown code on this forum” topic, and my updates near the end. It is very important that you use these formatting tips – using single backtick marks around small snippets, and using code-quoting for pasting multiple lines from your example data files – because otherwise, the forum will change normal quotes ("") to curly “smart” quotes (“”), will change hyphens to dashes, will sometimes hide asterisks (or if your text is c:\folder\*.txt, it will show up as c:\folder*.txt, missing the backslash). If you want to clearly communicate your text data to us, you need to properly format it.

    If you have further search-and-replace (“matching”, “marking”, “bookmarking”, regular expression, “regex”) needs, study this FAQ and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting, see the paragraph above.

    Please note that for all regex and related queries, it is best if you are explicit about what needs to match, and what shouldn’t match, and have multiple examples of both in your example dataset. Often, what shouldn’t match helps define the regular expression as much or more than what should match.

  • "always visible"?

    Locked
    3
    0 Votes
    3 Posts
    808 Views
    Meta ChuhM

    @Fred-Mitchell

    i have the same question 😉

    but if you are searching for the setting to keep notepad++ always on top:
    go to the menu view > always on top as shown at the screenshot below:

    Imgur

    side note: a google search for notepad++ always on top lists @guy038 's post from about 3 years ago at first place 👍

  • How to get a plugin in Notepad >= V7.6

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    Meta ChuhM

    @Hansi-Krause

    in addition to all of @PeterJones 's suggestions, could you please download a portable version from >>> here <<<, extract it to your desktop and run notepad++.exe directly from this folder, and try if you can install plugins using plugins admin ?

    explanation: the portable version will be completely isolated and independent from all other existing notepad++ folders and settings on that machine.
    with the portable version you can try if plugins admin would work for you on a fresh install, just like if it would be on another machine, regardless of any other notepad++ installs you currently have.

    i have one more question: are you eventually behind a corporate proxy server that might block any downloads on your machine ?
    if you want to test this out: open a cmd command shell window and enter ping notepad-plus-plus.org. if you don’t get an answer from 37.59.28.236, you are behind a proxy server, and have to add the proxy ip and port at the notepad++ menu ? > set updater proxy

  • files with R/r extension always open as REBOL

    Locked
    3
    0 Votes
    3 Posts
    842 Views
    jgx65J

    Great, many thanks, it worked!

  • Find and replace in xml file,

    Locked
    17
    0 Votes
    17 Posts
    4k Views
    Guillaume M. CHAZERANSG

    He guys

    I didn’t know only python gurus were working on this issue. ;) Thanks a lots for all these examples!
    I check them (beginning by the last one?) to resolve my issue

    chagui