• Erro code 2 Alguém pode ajudar?

    2
    0 Votes
    2 Posts
    562 Views
    PeterJonesP

    @odilon-jones-junior ,

    Error code 2 . Can anyone help?

    If this is an error you received while using Notepad++, you will have to be more clear – give us the ?-menu’s Debug Info, and provide screenshots if necessary, and give us enough to be able to see and hopefully replicate your problem, or at least understand where in the Notepad++ process this error is coming from.

    If this is an error that some other program generated, you will have to look elsewhere for the solution. (Please note: that is true even if you’re writing code using Notepad++, and the code you wrote gives Error Code 2, as described in our FAQ.)

  • 0 Votes
    3 Posts
    324 Views
    László BotkaL

    @ludamo-0

    Thank you, works fine.

    Winaero says
    Here you can change the font of statusbars, e.g. the Notepad statusbarfont. It will be also applied to tooltips in many apps. Note that many apps just not support this option. For example, Explorer wil ignore these font settings.

    I’ll see how it works on other places.

    It’s interesting that Notepad++ main statusbar also does not use this.

  • Join lines with specific symbol

    2
    0 Votes
    2 Posts
    805 Views
    Terry RT

    @Salamander931 said in Join lines with specific symbol:

    So basically I want to join line that starts with “\n” with previous line and I don’t want to delete this “\n” symbol. Any ideas how to do this?

    Using a regular expression in the “Replace” function we have:
    Find What:(?-s)\R^(\\n.+)
    Replace With:\1
    So search mode must be regular expression. Click on the “Replace All” button to change the entire file.

    You will see the \\ in the expression because the \ is regarded as a special character, so the additional \ escapes it, or reverts it to a normal character.

    Terry

    PS since you didn’t show the example inside of a black box (read the “read me before posting”) it’s possible this might not work. I suspect you may have leading spaces on some lines.

  • 0 Votes
    4 Posts
    4k Views
    Hellena CrainicuH

    thank you @guy038

  • Editer sur papier sans les retours de ligne

    2
    0 Votes
    2 Posts
    250 Views
    PeterJonesP

    @Michel-AUBINEAU ,

    I really appreciate notepad ++ and I use it as my PHP page editor.
    However despite all the possible settings of the ‘paper’ editions of a document, I cannot produce a ‘paper’ document which would give me:

    line numbers with the start of each line up to the width of the page (ignoring the end of lines … exceeding the width of my A4 page, maybe the first 80 characters!) by not skipping any line, so with a numbering that follow

    As the attached photo:

    sorry, your image didn’t get attached, and I don’t know that I’m fully understanding what you meant (possibly because translation software isn’t perfect). Can you try attaching the picture again? (And make sure you make it clear whether the picture is what you get or what you want.)

  • Need help with regex Chinese numbers

    4
    0 Votes
    4 Posts
    1k Views
    Bạch Lão BảnB

    @Stefan-Pendl @guy038

    Thank you, this problem finally solved :D

    New Project.jpg

  • 1 Votes
    18 Posts
    2k Views
    Terry RT

    @Hellena-Crainicu said in Regex: How to turn more words in the line as if they were seen in the mirror?:

    I thought of a much simpler solution, maybe you can help me a little bit.

    Your idea is actually just a rehash of the ones provided by @guy038 and myself. You have a lot to learn yet about regex, but don’t worry, this is a good way to learn. By trying something, realising it didn’t work, you at least have opportunity to dissect it and understand yet more about regex.

    I use the website rexegg.com as a good source of information. Just be aware that it refers to the many different flavours of regular expressions, not all examples will work in Notepad++. There are also other good sources of regex information available through the FAQ section of the forum.

    In your regex the [A-Za-z0-9\-\'] is almost identical to the \w that we used. You also ask where the other letters went to, in finding only the last letter was returned by using \1 when your find expression had the + at the end. The reason is that at the point the capture group saved any characters the + was outside of the (). So the expression captured a single character, then as the + was processed, it AGAIN captured a character, but in doing so the capture group \1 was overwritten with the latest character. Had you put the + inside of the () you will get all characters returned, but they will be in the original order.

    At the moment I think @guy038 and my solutions are as good as it gets within a regex world. Whilst we have shown it is possible with a regular expression to “mirror” (reverse) a word it does take quite a bit of coding to do so. Python (and other) language solutions work far more efficiently as they will often have higher level functions to take care of most of the hard work. In regex everything must be completed simply.

    Terry

  • 0 Votes
    4 Posts
    4k Views
    PeterJonesP

    @FairbanksBiz ,

    As @Alan-Kilborn said, once you closed the unnamed tab, Notepad++ deleted the session periodic-backup file, and thus “your data is gone”.

    But assuming you had the session-periodic-backup turned on (it is turned on by default), then at one point, Notepad++ was saving copies into the %AppData%\Notepad++\backup\ , as @Terry-R described. So the files were written there at one time, and then deleted. That means, if you are lucky, an application like Recuva might be able to find and undelete the recent periodic backup for you. But with the amount of time elapsed, it’s getting less and less likely. Sorry.

    In the future, if you want to cut from FILE1 to paste into FILE2, a better sequence would be:

    save FILE1
    I understand you might not have a named file for FILE1… but if this is data that is critical enough to you that you are desperate to recover it, then it should be critical enough to use up some disk space while you are in the middle of manipulating it. cut from FILE1 paste into FILE2 make sure FILE2 looks like you expect save FILE2 go back and save the empty FILE1 close the empty FILE1 use Windows Explorer or other filesystem tool to delete the empty FILE1

    …That way, any time before step 6, you can go into FILE1’s tab and UNDO to get back the original file.

    FAQ: Periodic Backup vs AutoSave Plugin => Describes the builtin “Session Snapshot and Periodic Backup” feature and compares it to the AutoSave Plugin Recuva => completely unaffiliated with Notepad++ or the Notepad++ Community Forum; listed as an example of file recovery software for Windows with no guarantee or warranty, explicit or implied, by its listing in this post
  • Intel Hex not higlighting

    29
    0 Votes
    29 Posts
    5k Views
    David GriffithsD

    @PeterJones @Alan-Kilborn Apologies Peter for responding to the wrong person.

    Yes I see what you illustrated on my laptop but not on my desktop.

    I just updated styers.xml on my desktop and all is wonderful.

    Many thanks,
    DG

  • Setting to enable backward search with RegEx enabled

    3
    0 Votes
    3 Posts
    970 Views
    Gary Winey 0G

    @PeterJones Thank you very much!

  • Set default extension in rename window

    3
    0 Votes
    3 Posts
    227 Views
    kiynK

    Feature request submited on github:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10729

    Thanks

  • ColdFusion Lexer Crashes NPP after 7.5.9

    1
    1 Votes
    1 Posts
    283 Views
    No one has replied
  • NppExec compilation of AutoIt files, with includes...

    15
    0 Votes
    15 Posts
    5k Views
    PeterJonesP

    I got curious, and had a couple spare minutes, so I did the experiment.

    set local e ~ substr -4 4 $(SYS.PROJECTMAINFILE) if $(e) != .au3 goto BADFILE

    so if you put that immediately after the npp_exec makefile.nppexec and before the Au3check.exe call, it will do a test for the PROJECTMAINFILE extension as well.

  • who can help me,I don't know what happened?And I'm a new man

    2
    0 Votes
    2 Posts
    189 Views
    Alan KilbornA

    @SatokaNolato

    Not sure exactly what your question is going to be, but I suspect it is going to be about Java code and not Notepad++.

    If that’s the case, it isn’t appropriate for this forum. Please find another place to ask it.

  • How to make notepad++ background blur?

    1
    0 Votes
    1 Posts
    377 Views
    No one has replied
  • Search Multiple Columns

    13
    0 Votes
    13 Posts
    1k Views
    PeterJonesP

    @Tom-Grisafe said in Search Multiple Columns:

    Any good site that completely explains Reg Expressions with Examples.

    Yes. The FAQ for regular expressions has plenty. I linked this to you already, in my first reply to you.

  • 0 Votes
    5 Posts
    757 Views
    guy038G

    Hi, @stephan-romhart, @terry-r and All,

    Oooooh, Stephan, I see ! Actually, it’s the comments, themselves, that are the objects to look for ;-))

    Then, just for your information, here is a shorter version of the two regexes, within the css_comment.xml file contents :

    <?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <functionList> <!-- ================================================ [ CSS comments ] --> <parser id="css_comment" displayName="CSS" commentExpr=""> <function mainExpr="/\*{2,3}(?i)[A-Z0-9\xc4\xd6\xdc\xdf -]+\*/" displayMode="$functionName"> <functionName> <nameExpr expr="(?i)[A-Z0-9\xc4\xd6\xdc\xdf -]+" /> </functionName> </function> </parser> </functionList> </NotepadPlus>

    With the added line, in the configuration file overrideMap.xml :

    <association id= "css_comment.xml" langID= "20"/>

    As the default CSS association is :

    <!-- <association id= "css.xml" langID= "20"/> -->

    Note that the added line, in the overrideMap.xml file, is not mandatory. But, in that case, you must rename the css_comment.xml file as css.xml !

    BR

    guy038

  • Is this a bug or my regular expression is wrong?

    3
    0 Votes
    3 Posts
    826 Views
    Alan KilbornA

    @Chris-Chris

    Yea, for sure read and follow the template for posting such questions!

  • 2 txt files are different in notepad , but similar in notepad++

    6
    0 Votes
    6 Posts
    2k Views
    amir darA

    @PeterJones said in 2 txt files are different in notepad , but similar in notepad++:

    (s) that aren’t recognized are in the

    thanks a lot, dude. this really was helpful and insightful !

  • Insert code before and after markdown selection

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @guy038 ,

    Ah, yeah: I had avoided the S/R in the macro because I didn’t think of ticking the “in selection”. Good idea.

    @fly-wire ,

    My solution is okay; but if you want to preserve your clipboard you should use @guy038’s solution, because mine will replace the contents of the clipboard with your selected text, whereas the search-and-replace macro does not use the clipboard, so your old clipboard contents will still be available for pasting later.