• Insert / Move XML Rows

    Locked
    8
    0 Votes
    8 Posts
    7k Views
    Claudia FrankC

    Hello Juan,

    could it be that the xml is layout more like

    <App action='A' id='1378'> <BaseVehicle id='128520'/> <SubModel id='3043'/> <EngineBase id='2133'/> <Qty>1</Qty> <PartType id='6708'/> <Part>G600096</Part> </App> <App action='A' id='1379'> <BaseVehicle id='128520'/> <SubModel id='296'/> <EngineBase id='2133'/> <Qty>1</Qty> <PartType id='6708'/> <Part>G600096</Part> <Note>W/O TOC ATTACHED<Note/> </App>

    if so, I didn’t take care that Note node may start with spaces in front.
    The find regex needs to be changed like

    (.*Qty>1<\/Qty>)\R(.*)\R(.*)\R(.*Note>.*\/>)

    Cheers
    Claudia
    P.S. I tried to modify guy038’s regex but didn’t get it done :-(
    but I learned and replace \r\n with \R :-)

  • Save as .txt default

    5
    0 Votes
    5 Posts
    6k Views
    Claudia FrankC

    Hello,
    did a quick check, opened a new document, chose save as
    and got .txt as the default extension. So looks ok for me.
    Win7 x64 npp6.8.8

    Cheers
    Claudia

  • find and replace help

    Locked
    5
    0 Votes
    5 Posts
    8k Views
    guy038G

    Hi Claudia,

    No, It’s not related to the complexity of the regex ! It’s just that the step-by-step replace doesn’t work at all, as soon as the search regex contains, at least, one \K form :-(( Though I don’t know exactly why !?

    Consider the subject string below :

    abc abcdef abcdefghi abcdefghidefjkl

    With the simple S/R SEARCH abc\Kdef and REPLACE 123, if I click on the Replace All button, we get the right text :

    abc abc123 abc123ghi abc123ghidefjkl

    Note that the second string def has not been changed, because it wasn’t just after an abc string. That’s correct !

    On the contrary, if I click, several times on the Replace button, nothing has changed !!!

    Cheers,

    guy038

    P.S.:

    I’ve just realized that the bug exists too, if we use a look-behind, instead of the \K form !

    So, the S/R SEARCH (?<=abc)def and REPLACE 123 does the job, if you click on the Replace All button, ONLY !

    Remember that, due to the look-behind feature, this regex tries to match a def string, only if preceded by the string abc

  • Can NPP have tripple views?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD

    3 views is not possible. Only 2.

  • How do I edit x64 bit files on file system?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello Greg,

    may I ask you which version of npp you are using as this issue
    should have been solved already. Some 5.8… version if I remember correctly.
    In the meantime I edited hosts file on a windows7 x64 pc with npp 6.8.7
    and do not have the problem you described.

    Cheers
    Claudia

  • not finding ftp plugin

    Locked
    8
    0 Votes
    8 Posts
    12k Views
    Claudia FrankC

    I’m afraid, no - it was requested as a feature but developer never implemented it.
    The only shortcuts you can defined are

    to show NppFTP window to focus NppFTP window to call about NppFTP

    Not very helpful if you want one for uploading.

    Cheers
    Claudia

  • How to write a find ane replace experssion

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    attathomeguyA

    THANK YOU SO MUCH THAT WORKED GREAT!

  • Unwanted number pop-u

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Robert W GlaubR

    Thanks!

  • Cannot install - cannot write to SciLexer.dll

    Locked
    2
    0 Votes
    2 Posts
    11k Views
    Claudia FrankC

    Hello Lisa-Cagle,

    it could be that you either

    have no write permission to the destination folder (did you use administrator account for installation?) or that there is already a file with the same name which has read-only flag set, so it can’t be overwritten.
    (if the file already exists, right click ->properties)
    Which OS do you use?

    Cheers
    Claudia

  • Selected tag background styling

    10
    0 Votes
    10 Posts
    6k Views
    Claudia FrankC

    @webdevpug,

    should I try and ask developers of the NPP to look into issue?

    I would give it a try, why not? There are already a lot of the scintilla
    styling parameters defined why not asking to provide the rest of it as well.
    There might be a reason not to do so but I guess asking can’t hurt.

    Cheers
    Claudia

  • Console Window Python Error Parsing Using NppExec

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Gregg T GeigerG

    Claudia: Your solution works perfectly. Thanks so much!

  • How keep tabs during deleting when set Replace tabs by spaces

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Unicode character displayed as an empty box.

    8
    0 Votes
    8 Posts
    16k Views
    guy038G

    Hello Angelo,

    In a prompt DOS window, your can know what is the current encoding : just type the command chcp and valid with the enter key. You probably use the codepage 850 ( OEM Multilingual Latin 1 ). Refer to the link, below :

    https://msdn.microsoft.com/en-us/goglobal/cc305160

    Of course, once your .bat file, opened in Notepad++, the accentuated characters, with code-point > \x{7f}, are wrongly displayed, because, Notepad++, use the default Microsoft ANSI codepage ( probably Windows-1252, as on my French configuration ! ). Refer to the link, below :

    https://msdn.microsoft.com/en-us/goglobal/cc305145

    You can, also, see that list, with the menu option Edit - Character Panel

    Remember that this ANSI code-page is the default codepage used, for all your NON Unicode programs, of your configuration.

    Therefore, the solution to get a well displayed .bat file, both, in N++ and with edit.com, in a DOS window, is to encode your file with the OEM 850 encoding with the menu option Encoding - Character sets - Western European - OEM 850
    ( if, of course, the chcp DOS command returned the number 850 )

    You may, also, convert, afterwards, this .bat file to the UTF-8 encoding, by using the menu option Encoding - Convert to UTF-8. However, this time, after opening it, with edit, in a DOS prompt window, it will be wrongly displayed too !

    Best Regards,

    guy038

    P.S. :

    BTW, I didn’t know the /U option of the DOS command cmd. Thanks for that tip :-))

  • 1 Votes
    9 Posts
    5k Views
    John SparkJ

    Hmm you wrote it like I would come from different planet.
    I’m not sure I described it well in my engrish :)

    But I’m sure it’s worth to build in. As I said for me as beginner, is pain in somewhere to make Atom work. It’s difficult to set it and know all available packages for my needs. It’s like every new package for every issue you want inside. It’s a lot of work to set it and also I’m not sure how overwrite basic-core key bindings and how manage conflicts of newcome key bindings coming with newly installed packages. But no more about Atom. My hero is Notepad++, I really want to stuck with it, but if me - a beginner has problems with it, I’m surprised others don’t.
    I just hope, this project won’t end like Sublime text ended or Lighttable too. Please developers listen to audience needs. Don’t let it die because of obsolete and not changing forward.

    Thanks

  • Double click selects whatever, but not what is mentioned to...

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    webdevpugW

    Thanks for help =)

  • Disable Mouse Auto Movement

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello jgjake2,

    you can’t blame npp for this rather your mouse properties settings.
    Check Pointer Options -> Snap to
    I assume this has been enabled(checked).

    Cheers
    Claudia

  • Is there a way to set %USERNAME% in the path?

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    瀚程戴

    You guys got my point although I didn’t make it clear enough. It’s a pity that npp could not get an environmental variable.
    Just let you know my demand better and my solution in R:

    library(R.utils)
    user <- System$getUsername()
    directory <- paste(“C:\\Users\\”, user, “\\workspace”, sep=“”)
    setwd(directory)

    With the above code, I could set the working directory correctly regardless of which computer I use, so it’s easy for me to switch different computers.

    I’m just a beginner of Python, however, I will learn your script @Claudia-Frank .
    Thank you all!@XP1 @Claudia-Frank

  • Config File

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Dan McGovernD

    thanks for the answer

  • Can not install plugins.

    5
    0 Votes
    5 Posts
    34k Views
    Stanislav ChizhikS

    Hi Claudia,
    Thank you for the assistance! I solved the problem. Firewall… Notepad++ appeared in the block list somehow.

  • Can't figure out how to run WYSIWYG

    Locked
    3
    1 Votes
    3 Posts
    6k Views
    Claudia FrankC

    Hello Jim-Robson,

    I assume you are creating webpages with html and php
    and WYSIWYG refers to updated webpages which should be
    displayed automatically, correct?

    If so, no this doesn’t work that way. You need to edit the pages in npp
    and run (F5) it with your preferred browser. As you use php in addition,
    you need to have some web server instance running.

    In F5 dialog you can put in something like

    DRIVE:\YOUR_INSTALL_DIRECTORY\YOUR_BROWSER.exe http://localhost/$(FILE_NAME)

    DRIVE might be replaced with C, D, etc.
    YOUR_INSTALL_DIRECTORY is, of course the directory where your browser is installed
    YOUR_BROWSER.exe something like Firefox.exe etc.

    $(FILE_NAME) needs not to be replaces, it refers to the open active document but
    http://localhost/ may be, depending whether you store everything in web server root directory.

    In addition there is a nppExec plugin which does the same as F5 RUN function but with more
    functionality.

    Cheers
    Claudia