• Notepad ++ not working with python

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Claudia FrankC
    I guess we have two different issues here, @Vasile-Caraus if you want to use the normal python installation (not the python script plugin) you need to make sure to use the command shell together with the python interpreter. In addition encase the path with double quotes to prevent that command shell tries to run D:\Program and everything else is treated as a parameter to that prog. So you have to call cmd /K "D:\Program Files (x86)\Python\python.exe" "$(FULL_CURRENT_PATH)" @Mohammed-Al-Othman if the icon is red it means that there are changes and you should save it. Beside this obvious one explain what your problem is exactly. Add screenshots if needed and provide examples or step by step descriptions. Cheers Claudia
  • Convert text from ASCII to OEM

    4
    0 Votes
    4 Posts
    7k Views
    Conrad CramerC
    Thank you Peter! … see that NPP re-interprets what’s there. But I doubt that’s what you want. Exactly ;-) What you’ve said about the PythonScript sounds good, but , sorry, too complicated for me. I’m not an IT-Expert, just a slightly advanced user… If there is no readymade plug-in/add-on available it’s probably much easier to pay the money for Edit Pad Pro. @guy038 Thank you too, but I’m aware of that Kind regards, Conrad
  • notepad++ sometimes loses its undo history

    undo history
    2
    0 Votes
    2 Posts
    2k Views
    gstaviG
    I don’t understand your description but one way to lose the UNDO history is when file is updated by external app and NPP reloads it.
  • Plugin manager

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Armaan-Bali maybe here. Cheers Claudia
  • EDIT .CSV file and SAVE as .CSV file

    15
    0 Votes
    15 Posts
    45k Views
    Claudia FrankC
    Hi Vijay, that’s what i feared. As AdrianHHH already pointed out (btw. thanks for jumping in) Excel is producing this message. The reason is simple, when you have a normal Excel file the file contants formatting informations as well as the text which you see in Excel. When converting this format to csv all the formatting stuff gets deleted because a csv is a plain text file format. So you have to decide either using the Excel format, but then you cannot edit it by notepad++ safely or converting to csv and loosing all formatted stuff. Cheers Claudia
  • Skip UAC with notepad++ portable (without installer)

    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS
    @ng-khanh I’m not sure if this is what you mean by “UAC” or not, but what I experienced was a pop-up upon running the notepad++ executable that said something like this: “…is an application downloaded from the internet…are you sure you want to run it?” That’s not very accurate as it has been a long time since I saw the message… What worked for me to get rid of it was downloading the portable install archive file to a USB flash drive and then unzipping it from there to the desired location. I’m not sure of the technical details, but I believe the hard drive file system format used by most Windows installations has extra fields for keeping track of “important” details like that so it can warn/bother you. :-) USB flash memory drives typically don’t have those “extra fields”, so the OS really doesn’t know where a file came from, thus it doesn’t bother you about it when you run the file. If this isn’t what you meant by UAC, please ignore my ramblings…or maybe this will help someone else…
  • Escape Key for the Document Switcher (Ctrl+TAB)

    6
    0 Votes
    6 Posts
    4k Views
    gstaviG
    Escape would be of little help since ctrl-esc opens Windows’ start menu. It would work in Linux over wine however. I think that sorting is a bad idea. You have to keep pressing ctrl while navigating with the mouse. It sounds cumbersome and I prefer task switcher to be very light. I do recommend NavigateTo plugin for finding files by name. Another issue is that task switcher should close when losing focus. Currently if you click on another window it remains open. If you want, here is a patch for closing task switcher on ctrl-esc or ctrl-~. Here are compiled binaries.
  • keyboard shortcut to delete current line?

    3
    0 Votes
    3 Posts
    22k Views
    Mark BeileyM
    Perfect, thank you!
  • Help with displaying Korean characters

    Locked korean characte encoding
    3
    0 Votes
    3 Posts
    9k Views
    PeterJonesP
    Similar to this post, are you certain the font you have selected for NPP has the Korean characters? Preferences > Style Configurator > Global Styles > Default Style > Font Style will tell you what font is chosen for NPP as default. To see whether that font has the Korean characters, WIN+R (windows button and R at the same time) > charmap, select that same font from the pulldown; select Group By = Unicode Subrange, and in the Group By popup window, select the appropriate Korean group (Korean Hangul, I assume). Note that the DejaVu Mono that I recommended in the Greek post doesn’t have any characters in the Korean Hangul group; however, Source Code Pro does have some characters in that group, though I cannot say whether it’s all that you need or not. Hmm, actually, when I copy your " 너에게 닿기를" into my NPP with DejaVu Mono font, those characters do show up, so maybe that’s not the right Unicode Subrange to look at (I know nothing about Korean characters). I looked at my windows notepad.exe font setting, and it’s Lucida Console, so if you don’t have (or don’t want) DejaVu Mono or Source Code Pro, you might try Lucida Console (or whatever your notepad > format > font is set to).
  • 0 Votes
    4 Posts
    2k Views
    Michael McnairM
    Thank you @Claudia-Frank That is what I needed.
  • PowerShell Language Woes

    language
    6
    0 Votes
    6 Posts
    13k Views
    PeterJonesP
    @Roman-Revell, Although, now there is just one long menu instead of the multi-tiered menu, which is fine. Preferences > Language > Language Menu > ☑ Make language menu compact [image: DO0FCQ9.png]
  • Custom AutoComplete file for XML NEW language

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    duplicate Cheers Claudia
  • file with greek characters in windows 10

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    Peter BrawleyP
    Thanks so much, I was using BitStream Mono, DejaVu Mono fixed it.
  • Regex replace only on the first group not the others

    10
    0 Votes
    10 Posts
    10k Views
    Claudia FrankC
    Hi Guy, I would still use the more descriptive version of (?-s) because there isn’t really a difference (?-s)^Dialogue(?=.+Song - (Romaji|Translation)) -> took 14.708000 seconds (?-s)^Dialogue(?=.*Song - (Romaji|Translation)) -> took 14.631000 seconds ^Dialogue(?=.+Song - (Romaji|Translation)) -> took 14.635000 seconds ^Dialogue(?=.*Song - (Romaji|Translation)) -> took 14.697000 seconds but has the advantage of settings the s switch explicitly - so you’re sure about what should be done. Cheers Claudia
  • Cut the number of characters in all documents

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    StasS
    @Scott-Sumner said: (?s).{500}\K.* checked, it works! Thank you
  • Python script plugin alternative working with python 3?

    Locked pythonscript python
    5
    0 Votes
    5 Posts
    4k Views
    YaronY
    You’re welcome.
  • How can i use HTML and CSS in the same document?

    Locked websites css html
    4
    0 Votes
    4 Posts
    3k Views
    Scott SumnerS
    I do maintain that it is not a Notepad++ question. It is a question about the CONTENT of a file you can create with any text editor. But, in the spirit of trying to be helpful, there might be something of use at the link below (don’t really know, I’m not into HTML/CSS): http://lmgtfy.com/?q=html+and+css+in+same+file
  • Replace text between tag only if specified text appears in parent tag

    3
    0 Votes
    3 Posts
    5k Views
    Paul FlintP
    Thank you for your help.
  • Delete most of the text of the file

    5
    0 Votes
    5 Posts
    3k Views
    guy038G
    Hi, Vincent, Do you mean that your file may contain lines, as below, that you would like to delete ? 1 Elevator de chantier 1L01522838425 1 Housse de couette Bibi 1L01522838521 If so, a possible regex syntax, for that S/R, would be : SEARCH (?-s)^.+ (.+) €.*|^(?!.+€).*\R , with a space, before the first opening parenthesis an a second space character, after the first closing one ! REPLACE ?1\1 Notes : From beginning of the line, ^ : The first alternative is almost identical to the search regex of my previous post. I just added the syntax .* at the end of the first branch, in order to match all subsequent characters, after the last € character The first part of the second branch of the alternative, (?!.+€) is a condition, called a negative look-behind, which means “NO Euro sign, exists, further on, in the current line ?” If this condition is TRUE, then, the regex engine matches the second, and main, part, of the second branch, .*\R. In other words, all the contents, even empty, of the current line, with its EOL characters In replacement, IF group 1 ( the price ) exists, we just rewrite that group 1 ( the value), ELSE we do not rewrite anything => All the current line, with the EOL character(s), included, is deleted So, from the original text, below : A Elevator de chantier 1L01522838425 110,30 € 110,30 € C Elevator de chantier 1L01522838425 D Oreillet bleu 1L01522839954 51.26 € 51.26 € F Housse de couette Bibi 1L01522838521 G Housse de couette Bibi 1L01522838521 86.20 € 86.20 € I Elevator de chantier 1L01522838425 27,10 € J Oreillet bleu 1L01522839954 734.56 € K Housse de couette Bibi 1L01522838521 0,99 € M Elevator de chantier 1L01522838425 1.00 € Test N Oreillet bleu 1L01522839954 99,99 € small test O Housse de couette Bibi 1L01522838521 57.34 € A Test The regex S/R, above, would get the final text, below : 110,30 51.26 86.20 27,10 734.56 0,99 1.00 99,99 57.34 REMARKS : If the price is present, only once, it doesn’t matter : The price will be displayed If some text is present, after the last Euro character , it will be deleted, too If you prefer to keep the pure blank lines, use, instead : SEARCH (?-s)^.+ (.+) €.*|^(?!.+€).+\R REPLACE ?1\1 And you’ll obtain the changed text, below : 110,30 51.26 86.20 27,10 734.56 0,99 1.00 99,99 57.34 Cheers, guy038
  • Regex search/replace wildcard

    8
    0 Votes
    8 Posts
    31k Views
    guy038G
    Hello, Ryan, Claudia, AdrianHHH and All, Ryan, see the main differences, between the four simple regexes, below ( I suppose a sensitive search ) : a.*z matches a lowercase letter a, followed by the LONGEST range of characters, even EMPTY, till a lowercase letter z a.*?z matches a lowe-case letter a, followed by the SHORTEST range of characters, even EMPTY, till a lowercase letter z a.+z matches a lowercase letter a, followed by the LONGEST range of characters, NON empty, till a lowercase letter z a.+?z matches a lowercase letter a, followed by the SHORTEST range of characters, NON empty, till a lowercase letter z Just try these four regexes, with the subject text : az abcxyz az abz abxz abcxyz az ab bcxz abcx, in a new tab. The differences are quite obvious ! AdrianHHH, you shouldn’t be annoyed, about choosing between the two syntaxes, below, as they are strictly identical ! (?-s)alignment=".*?" alignment="[^"\r\n]*" Similarly, the two syntaxes, below, are strictly identical, too : (?s)alignment=".*?" alignment="[^"]*" The reason is that you reach a final UNIQUE character ( a quote mark ) " Now, I’m speaking to everybody ! For instance, do NOT confuse these two regexes : The regex 123.+?5, that means : A string 123 followed by the SHORTEST, NON-empty, range of characters, till a digit 5 And the regex, almost identical, 123.+?56, which Does NOT mean : A string 123 followed by the shortest, NON-empty, range of characters, till a digit 5, then the 6 digit But means : A string 123 followed by the SHORTEST, NON-empty, range of characters, till the string 56 So, against the subject text 012345789 0123456789 012345789 0123456789, the first regex 123.+?5 finds four occurrences, whereas the the second regex 123.+?56 would, only, find two occurrences ! Here is a summary example : Let’s imagine the text, below, where the string abcdlmpqrst is repeated, 10 times, with, sometimes, the lack of the letters p and/or q : q missing q missing pq missing p missing p missing pq missing q missing p missing abcdlmprst abcdlmprst abcdlmrst abcdlmpqrst abcdlmqrst abcdlmqrst abcdlmrst abcdlmpqrst abcdlmprst abcdlmqrst Against this text, let’s try, successively, the 20 regexes, below, where the last fourteen contains the [^...] structure : Regex A : (?-s)ab.+p Regex B : (?-s)ab.+q Regex C : (?-s)ab.+pq Regex D : (?-s)ab.+?p Regex E : (?-s)ab.+?q Regex F : (?-s)ab.+?pq Regex G : ab[^p\r\n]+p Regex H : ab[^q\r\n]+q Regex I : ab[^p\r\n]+?p Regex J : ab[^q\r\n]+?q Regex K : ab[^q\r\n]+p Regex L : ab[^p\r\n]+q Regex M : ab[^q\r\n]+?p Regex N : ab[^p\r\n]+?q Regex O : ab[^p\r\n]+pq Regex P : ab[^q\r\n]+pq Regex Q : ab[^pq\r\n]+pq Regex R : ab[^p\r\n]+?pq Regex S : ab[^q\r\n]+?pq Regex T : ab[^pq\r\n]+?pq Here are the results, where each match is indicated by a range of dashes q missing q missing pq missing p missing p missing pq missing q missing p missing abcdlmprst abcdlmprst abcdlmrst abcdlmpqrst abcdlmqrst abcdlmqrst abcdlmrst abcdlmpqrst abcdlmprst abcdlmqrst A --------------------------------------------------------------------------------------------------------------- B ---------------------------------------------------------------------------------------------------------------------------- C -------------------------------------------------------------------------------------------------- D , G , I ------- ------- ------------------- --------------------------------------------- ------- E , H , J ---------------------------------------------- ------- ------- -------------------- -------------------- F ---------------------------------------------- ---------------------------------------------- K --------------------------------------------- ------------------- ------- L -------------------- ------- M ------- ------- ------------------- ------------------- ------- N ------- ------- ------- O , R -------------------- ---------------------------------------------- P , S ---------------------------------------------- -------------------- Q , T -------------------- -------------------- Just notice that, as I said, above : The regex D, (?-s)ab.+?p, DOES have an equivalent regex G, ab[^p\r\n]+p, with the [^.....] structure The regex E, (?-s)ab.+?q, DOES have an equivalent regex H, ab[^q\r\n]+q, with the [^.....] structure but : The regex F, (?-s)ab.+?pq, does NOT have an equivalent regex, containing the [^.....] structure Note, also, that : The regexes O, ab[^p\r\n]+pq, and R, ab[^p\r\n]+?pq are equivalent The regexes P, ab[^q\r\n]+pq, and S, ab[^q\r\n]+?pq are equivalent The regexes Q, ab[^pq\r\n]+pq, and T, ab[^pq\r\n]+?pq are equivalent Why ? Just because the range of characters, after the string ab, must NOT contain a part or the totality of the string pq. In other words, theses six regexes, from O to T, always look for the shortest range of characters, between the string ab and the string pq ! Best Regards, guy038 P.S. : Ryan, for your regex “education”, just begin with that article, in N++ Wiki : http://docs.notepad-plus-plus.org/index.php/Regular_Expressions In addition, you’ll find good documentation, about the new Boost C++ Regex library, v1.55.0 ( similar to the PERL Regular Common Expressions, v1.48.0 ), used by Notepad++, since its 6.0 version, at the TWO addresses below : http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html The FIRST link explains the syntax, of regular expressions, in the SEARCH part The SECOND link explains the syntax, of regular expressions, in the REPLACEMENT part You may, also, look for valuable informations, on the sites, below : http://www.regular-expressions.info http://www.rexegg.com http://perldoc.perl.org/perlre.html