• PHP Styling on Files with Non-PHP Extension

    3
    0 Votes
    3 Posts
    3k Views
    JoeBoxer35J

    Alan,

    Thank you, I didn’t realize it was that easy. I saw the language menu and looked in “P” but that only had Pascal, Perl, etc. I didn’t see PHP at the bottom of that list.

    Thank you for helping me out so quickly !!! Much appreciated.

    Joe

  • Double line break for folding close

    3
    0 Votes
    3 Posts
    680 Views
    boeghB

    Yes it is that code folding, that I would like to use for folding sections in Markdown documents. I have an example screenshot here, that shows This is headine 2 (please ignore the formatting etc.) being folded, while 1 and 3 are not. In this example I am using three dashes ( — ) to mark the close of the folding ((screenshot here)[https://imgur.com/a/NdRTawX]), but what I would like to do, is to use a double linebreak (((EOL))((EOL))) as the closing tag instead. But that doesn’t seem to work :(

  • 0 Votes
    2 Posts
    718 Views
    EkopalypseE

    @Eddie-Ashford-Jr.

    if there is a shortcut conflict, open shortcut mapper from the settings menu and resolve it.

  • Sad Person with an XML file and 500 numbers

    15
    0 Votes
    15 Posts
    1k Views
    Alan KilbornA

    It’s not uneducated nor is it pettiness; it’s simply reading what people take the time to write in responses. If you do that and it still doesn’t work, read it (and try it) again. Of course, sometimes the help is wrong as well, so after a couple of tries and fails it’s probably best to ask. But we’re all about solutions here, and it sounds like you have one, so there we go, another success story. :)

  • -1 Votes
    4 Posts
    645 Views
    PunkN13P

    My apologies… I often forget that my sense of humor is not everyone’s cup of tea. I have been searching for solutions endlessly which I’ve found (after submitting my original post) that I was wrong in thinking that Papyrus Plugin is a Notepad++ plugin. Unfortunately, learning that has not helped me further my quest for solutions. Since I know [now] that it’s not as well-known as I previously thought… I feel silly for not providing the detailed description of the problem. It also doesn’t help that there really is no description to give. I would download the plugin from github & install; but it just simply would not work. N++ wouldn’t even recognize it to show it in the Plugins Tab, but has no problem recognizing all other plugins. I’m not sure if I should delete this original post — since it’s clear to me now that I’ve posted in the wrong forums — or leave/edit it in case somebody else comes across these forums looking for the same answer.

  • Update R language Folding in code keywords

    4
    0 Votes
    4 Posts
    463 Views
    EkopalypseE

    @Allan-R

    not exactly as an export/import action but as copy/paste for keywords.
    The keywords are listed in the langs.xml.

  • Wrong parsing for C function

    5
    0 Votes
    5 Posts
    608 Views
    neacsumN

    Yes, it seems that way. One more thing: if I change the language to C++ the issue goes away. It is probably related to the horrendous regexps used for parsing C function definitions but I’m not smart enough to figure it out.

  • 0 Votes
    9 Posts
    2k Views
    EkopalypseE

    @Alan-Kilborn

    unfortunately I can only upvote once. You are right!!!

  • 0 Votes
    3 Posts
    4k Views
    Michael VincentM

    There is also the PreviewHTML plugin that may work. Not sure how well it renders; it’s based on the installed Internet Explorer versions.

  • Open .csv files don't work at first / change default selections

    6
    0 Votes
    6 Posts
    1k Views
    Alan KilbornA

    @Jan-Öhman said:

    that’s when I got an error when opening the file …

    It’s really doubtful that the filter settings had anything to do with the error you received.

    Is it possible to change which file types are displayed in Notepad ++?..not only *.txt files but also *.csv and *.skv files

    Probably not easy to get just those 3 types filtered.

  • How to detect lines lacking "..." at end?

    7
    0 Votes
    7 Posts
    1k Views
    guy038G

    Hi, @silent-resident, @peterjones, @alan-kilborn, @dinkumoil, and All,

    @peterjones :

    Peter, your search regex [^\.]\K(?=\R\R\d+$) ( which could be written [^.]\K(?=\R\R\d+$) ) does not work as expected ! Why ?

    Well, considering the first sub-title, in a Windows file, your regex first matches the zero-length gap, between letter t and the \r EOL character and it correctly adds the symbol. OK !

    Now, the regex engine location is between the two characters and \r. At this location, is there a single char, different from a dot, which can be followed with two line-breaks. The answer is YES : it’s just the \r EOL char, which is followed with \n ( so the first \R ) and the \r\n couple ( So, the second \R ). Thus, it adds a ... symbol between the \r and the \n of the first line-break

    This situation cannot occur, again, right after as, if it had chosen the \r char ( as [^.] ), then the remaining EOL characters were, only, the \n character, which cannot match the \R\R part of your regex ! So, the next match happens, wrongly, between the \r and \n EOL characters, at the end of the line on earth’s surface. and so on ... -((

    Luckily, 3 solutions are possible to get the right behaviour :

    The [^.\r\n]\K(?=\R\R\d+$) syntax to forces the character, before the EOL characters, to be different from EOL chars !

    The [^.]$\K(?=\R\R\d+$) syntax. Adding the $ anchor forces the [^.] character to be located right before an end of line ( so, obviously, not between the two EOL characters \r and \n). It’s the solution adopted by @dinkumoil !

    Finally, use the exact Windows EOL definition, with the [^.]\K(?=\r\n\r\n\d+$) syntax

    Cheers,

    guy038

  • Spell Check Not Working

    17
    0 Votes
    17 Posts
    10k Views
    Alan KilbornA

    I believe the poster is after a replace-on-misspelled word function.

    Think about Notepad++'s Replace button functionality, but where the Find what is the next sqiggly-underlined misspelled word. :)

  • GraphQL schema syntax highlighting

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is there a way to close the window without confirming the save?

    5
    0 Votes
    5 Posts
    4k Views
    Munsen TidocoM

    Here you have the answer.
    It is very useful to close everything from time to time.

    https://notepad-plus-plus.org/community/topic/16562/close-all

  • Formating in Notepad++ after pasting text from a web page.

    6
    0 Votes
    6 Posts
    4k Views
    PeterJonesP

    @Alan-Kilborn said:

    I get multiple lines

    So do I.

    You have ignored two requests for version information about your Notepad++.

    Indeed.

    It might also come into play what browser that @Patrick-Maher is using… maybe his browser isn’t putting the newlines into the clipboard. I’m using Chrome Version 76.0.3809.100 (Official Build) (64-bit).

    As another test, what happens if it’s pasted into some other application, like MS notepad.exe? If you get a single line when you paste into Notepad++, but get multiple lines when you paste into notepad.exe, then it’s likely a bug on the Notepad++/Scintilla end; if you get single lines no matter where you paste it, it’s likely a bug in how the browser is populating the clipboard.

  • Finding and Removing LF within a comma delimited comments field

    4
    2 Votes
    4 Posts
    2k Views
    guy038G

    Hello, @john-ditzel and All,

    I tried to re-visit the general problem, when a list of records, in a delimited file, is completely unformatted and may contain :

    Line-break(s) and/or blank character(s), possibly consecutive, inserted before and/or **after any field separator symbol ( generally a comma, semi-colon or colon char )

    Blank character(s), possibly consecutive, located at beginning or end of any field contents, right before and/or after the delimiter symbol ( generally a double or single quote char )

    Line-break(s), possibly consecutive, located inside any field contents, between two standard characters, different from, both, the delimiter and the separator symbols

    Additional line-break(s) and/or blank character(s), possibly consecutive, between two records

    Unnecessary space characters char(s)( or tabulation chars, when not a delimiter ) inside field contents

    So, here is a way to get a neat formatted list :

    Let SEP be the field separator ( The , character, in your case )

    Let DEL be the starting AND ending character delimiter ( The " character, in your case )

    IMPORTANT : The separator character is NEVER part of any field value !

    IF the separator is not the tabulation character, use these four generic regex S/R, below, in that order :

    SEARCH  1 [\h\r\n]*(SEP)[\h\r\n]*|DEL\K[\h\r\n]*(?=DEL|\z)

    REPLACE 1 ?1SEP:\r\n

    SEARCH  2 [^DELSEP\h\r\n]\K(\h*\R+)+\h*(?=[^DELSEP\h\r\n])

    REPLACE 2 \x20

    SEARCH  3 (^|SEP)DEL\K[\h\r\n]+|[\h\r\n]+(?=DEL(SEP|$))

    REPLACE 3 Leave EMPTY

    SEARCH  4 (['-])\h+|\x20{2,}|\t+

    REPLACE 4 ?1\1:\x20

    IF the separator is the tabulation character, use these four generic regex S/R, below, in that order :

    SEARCH  1 [\x20\r\n]*(\t)[\x20\r\n]*|DEL\K[\x20\r\n]*(?=DEL|\z)

    REPLACE 1 ?1\t:\r\n

    SEARCH  2 [^DEL\h\r\n]\K(\x20*\R+)+\x20*(?=[^DEL\h\r\n])

    REPLACE 2 \x20

    SEARCH  3 (^|\t)DEL\K[\x20\r\n]+|[\x20\r\n]+(?=DEL(\t|$))

    REPLACE 3 Leave EMPTY

    SEARCH  4 (['-])\x20+|\x20{2,}

    REPLACE 4 ?1\1:\x20

    Practical example :

    Assuming the sample list, below, containing 3 records, and, really, very, very twisted !

    "John","Smith","Chicago","Illinois","Likes to bicycle and swim. " " Mary Elisabeth " , " Ditzel " ," Los Angeles" , "California"," Love skiing and snow- boarding" "Andrew " , " Mc Millan " , "San Francisco " , " California" , " This is a small Test "

    With the first regex S/R, below,

    We delete any range of blank and/or EOL characters, located outside fields and which surrounds separators

    We replace any range of blank and/or EOL characters; between two records, with a single line-break

    SEARCH [\h\r\n]*(,)[\h\r\n]*|"\K[\h\r\n]*(?="|\z)

    REPLACE ?1,:\r\n

    So, the text is changed into :

    "John","Smith","Chicago","Illinois","Likes to bicycle and swim. " " Mary Elisabeth "," Ditzel "," Los Angeles","California"," Love skiing and snow- boarding" "Andrew "," Mc Millan ","San Francisco "," California"," This is a small Test "

    Now, after running the second regex S/R, below, which replaces any range of blank and/or EOL chars, containing, at least, one EOL char, between 2 non-delimiter/blank/EOL characters, with a single space character :

    SEARCH [^",\h\r\n]\K(\h*\R+)+\h*(?=[^",\h\r\n])

    REPLACE \x20

    We get the changed list, below :

    "John","Smith","Chicago","Illinois","Likes to bicycle and swim. " " Mary Elisabeth "," Ditzel "," Los Angeles","California"," Love skiing and snow- boarding" "Andrew "," Mc Millan ","San Francisco "," California"," This is a small Test "

    Then, using this third regex S/R, which deletes any consecutive range of blank and/or EOL characters, beginning or ending any field :

    SEARCH (^|,)"\K[\h\r\n]+|[\h\r\n]+(?="(,|$))

    REPLACE Leave EMPTY

    We get :

    "John","Smith","Chicago","Illinois","Likes to bicycle and swim." "Mary Elisabeth","Ditzel","Los Angeles","California","Love skiing and snow- boarding" "Andrew","Mc Millan","San Francisco","California","This is a small Test"

    From now on, we almost have our neat list, without unnecessary line-breaks ! Finally, with that fourth regex S/R, we normalize any consecutive range of blank characters to a single space character, except when right after a dash or apostrophe. In that case, the space char, wrongly added, by the second S/R above, is, then, deleted !

    SEARCH (['-])\h+|\x20{2,}|\t+

    REPLACE ?1\1:\x20

    And, here is our final and expected list :

    "John","Smith","Chicago","Illinois","Likes to bicycle and swim." "Mary Elisabeth","Ditzel","Los Angeles","California","Love skiing and snow-boarding" "Andrew","Mc Millan","San Francisco","California","This is a small Test"

    Regards

    guy038

  • Notepad++ crashing

    10
    1 Votes
    10 Posts
    2k Views
    Hana EmadH

    <Html>
    <head>
    <title>العماد كلين0531610566
    </title>
    </head>
    <body>افضل شركة تنظيف منازل بجدة</body>
    </Html>

  • 0 Votes
    2 Posts
    520 Views
    EkopalypseE

    @Marc-Step

    would you mind sharing a code example which can be used to test?
    In addition it would be helpful to see your debug-info from 7.6 and 7.7.
    The info can be found on the last menu item, the ? menu.
    And if you make screenshots, upload it to an hoster and embed it here with a syntax like
    ![](url_of_the_uploaded_imagel) would be helpful too.

  • In rows with notepad

    2
    0 Votes
    2 Posts
    400 Views
    Alan KilbornA

    @oscar-remiccc

    So you have to pick out some sort of pattern to be able to do this. If your lines are always in pairs then it is fairly easy:

    Find what box: (?-s)^(.+)\R(.+)
    Replace with box: \1\s\2
    Wrap around checkbox: ticked
    Search mode: Regular expression
    Action: Press Replace All button

    Of course if your data is not as regular as it appears, then we will move on to something else…

  • coldfusion lexar plugin not highlighting tags in 7.7

    1
    0 Votes
    1 Posts
    264 Views
    No one has replied