• Setting to enable backward search with RegEx enabled

    3
    0 Votes
    3 Posts
    951 Views
    Gary Winey 0G

    @PeterJones Thank you very much!

  • Set default extension in rename window

    3
    0 Votes
    3 Posts
    220 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
    282 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
    184 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
    374 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
    739 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
    816 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.

  • NPP menus refreshing causing computer to slow down

    4
    0 Votes
    4 Posts
    392 Views
    orhanodO

    Hi, I encounter this problem on every notepad++ opening. The main menu refreshes 3 times, and each refresh takes around a second. Removing “Explorer” plugin fixed it for me.

  • 0 Votes
    10 Posts
    535 Views
    Polar BearP

    I’ve been able to get the job done, using the suggestions by guy038, which seems the simplest for me.
    (
    SEARCH (?-si)^(.+#0A5D00.+)[/b]

    REPLACE $1

    … )

    Anyhow, thank you both for taking the trouble to help.
    With best wishes

  • 0 Votes
    9 Posts
    1k Views
    Neil SchipperN

    @Polar-Bear

    The cake is fully baked, wonderful scents are coming out of the kitchen, go to other thread here as mentioned by @PeterJones in his post above:

    This conversation was continued in “Deleting a group of characters in lines with same beginning and ending, but different in between (re-post)”.

  • 0 Votes
    2 Posts
    166 Views
    PeterJonesP

    @RC-Ayers ,

    You’ll get more help if you try to describe your problem with a bit more detail.

  • Search title

    3
    0 Votes
    3 Posts
    255 Views
    Christian 0C

    Great!! Thanks! I tried searching in the forum beforehand but I had found nothing.
    Works fine!

  • First F3 ok, F3 again selects the entire doc!!

    5
    0 Votes
    5 Posts
    539 Views
    hcchenH

    @Alan-Kilborn Putting a ^ at the beginning of every regex AND’ed sections has reallllllly fixed the complexity problem! thank you sooooo much!!

  • (Document list + Find + Multiple files + at least 1 file in dual show) bug:

    16
    0 Votes
    16 Posts
    4k Views
    artie-finkelsteinA

    Alternate suggestion (somewhat alluded to by a previous response by Alan Kilborn):

    Don’t move the vertical separator bar so that one of the views is fully obscured, leave at least one text line visible. The obscured pane is only hidden from the user, not from the editor. When a user makes the pane effectively invisible, what they are really doing is saying don’t show me the contents, so when the editor changes the contents (scrolls the file to display the match) the user can’t see what is going on.

    This may not affect the purported bug, but it should at least make it easier to see what is going on. I do note that the Find All in All Opened Documents option will resize the document views to allow space for the Search results window and this may require appropriate resizing of all three panes.

  • I can't open the html on a browser

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Danielle-Bray ,

    I’m learning code and it cant open chrome what do I do

    Um. Your question as written does not seem to have anything to do with Notepad++, which is what this forum is about.

    If by this question, you mean, “I have started typing HTML using Notepad++. I would like to view the HTML I am writing in my already-installed Chrome browser on the same computer. How can I do that from Notepad++?”, then the answer is:

    Save the HTML file to some known location Use Notepad++'s View > View Current File In > Chrome, and as long as you have a standard installation of Chrome, the saved file will be opened in Chrome. Now if you make changes in Notepad++, you just need to save there, Alt+Tab over to Chrome and refresh/reload the page (F5 or Ctrl+R).

    On step 2, if you don’t see that menu option, then you might have an ancient Notepad++ version; in that case, a similar command might be available in the Run menu.

  • random replace string for a limited amout of accourenses

    2
    0 Votes
    2 Posts
    353 Views
    PeterJonesP

    @ciucaandrei ,

    Search-and-replace cannot randomize the list of files to search. And search-and-replace doesn’t have a counter that would work exactly like you showed (you can tell it to repeat part of the same regex N times, so it can count to some extent… but that’s counting within a single match, not counting and only doing a replacement for the first N matches). So you would have to manually pick your “random file” and then do the search/replace once in that file; then do that again N times.

    The way you described it, it sounds like a programming challenge, not a text editor feature. And the purpose of this forum is to help each other use the existing features of Notepad++ to the best of its ability, not do other people’s programming for them.

    If you want to solve it in programming, you could type the code to do that in Notepad++, which is one of its primary purposes. And if you wanted to, you could use one of the scripting plugins, like PythonScript, where the script would run on the files that are opened in Notepad++… but even then, it’s still essentially a programming task, and we are not a programming forum.