• Help with regex

    19
    0 Votes
    19 Posts
    14k Views
    DaveyDD
    :) Yes, I did! - Sorry about that confusion! Let me know what you think - I thought it was great and it really helped me in the beginning. All the best Davey
  • Save a list of missing files

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    guy038G
    Ian, I preferred, in my last post, add the mark 1 OR 2, in order to easily notice, in the final File 3 fine, the lines that : are in File 1 and NOT in File 2 ( The ones, which end with the mark 1 ) are in File 2 and NOT in File 1 ( The ones, which end with the mark 2 ) However, as it seems that : ONLY your File 2 has 950 more lines, about, than in File 1 NO line, in File 1, is missing, in File 2 We DON’T have, therefore, to add any mark, in the two files :-) Necessarily, the remaining lines will be, only, the additional lines of the File 2 file !! Then, the list of the different steps to do is quite simplified ! So, we start with two files, File 1, below : Line A Line C Line D Line F Line G and File 2, below : Line A Line B Line C Line D Line E Line F Line G Line H Merge the contents of the two files File 1 and File 2, in a File 3 file. So, here are the contents of the File 3 file, below : Line A Line C Line D Line F Line G Line A Line B Line C Line D Line E Line F Line G Line H Perform a sort, on the contents of File 3 file, with the menu option Edit - Line Operations - Sort Lines Lexicographically Ascending. The File 3 file is, now, changed, as below : Line A Line A Line B Line C Line C Line D Line D Line E Line F Line F Line G Line G Line H Add an empty line, at the very end of the File 3 file ( just for the next S/R to work correctly, in all cases ) Now, we just have to run an unique S/R, on the contents of the File 3 file : Open the Replace dialog ( CTRL + H ) Get back to the very beginning of the file ( CTRL Origin ) SEARCH ^(.+\R)\1 REPLACE NOTHING Check the Regular expression search mode Uncheck the . matches newline option Click on the Replace All button -> The final state of the File 3 file, as you would expect to, should be, as below : Line B Line E Line H Notes : This regex deletes all the two same lines, which come, both, from File 1 AND File 2 files Compared to my previous post, the regex is more simple, because, we don’t take account of the mark character, at the end of each line The part .+ represents all the standard characters, of each non empty line The syntax \R represents the EOL character(s), of each non empty line The round brackets (....) , surrounding the part .+\R, store the any entire line as group 1 The form \1 stands for an entire line, identical to the previous one ( group 1 ) As the Replace field is empty, the two consecutive identical lines are, therefore, deleted In order to simplify the regex, I didn’t try to delete the possible empty lines I hope that this new version, of the method, will be more clear ! Cheers, guy038 P.S. : When you say : If this is so then it would be an impossible task, there are several thousand lines I just don’t understand ?! Indeed, the previous S/R, to add a mark : SEARCH .$ REPLACE $0\t1 take, almost, the same time, to be performed on a file of 10 lines only OR on a huge file with 100,000 lines ! As for me, on my old Win XP laptop, with 1 Gb of RAM, only, and N++ v6.8.8, this S/R take 8 seconds, about, on a 100,000 lines file :-)))
  • 0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Robson-Reis, I know there was a problem with the find in files in former releases (don’t know exactly which version) but it should been fixed now. I tried it on my windows 7 x64 with npp 6.8.8 and it is working. Can you post the debug info( ?->DebugInfo) ? Can you try to start npp without plugins using -noPlugin switch? If it is still reproducable can you give us the exact steps you did like which theme is used, which language, what words where selected etc… Cheers Claudia
  • mIRC scripting language highlight addition

    Locked msl mirc
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    Hello Dimitris, I don’t have any issue importing the udl file. What I did was copy and paste the xml into a file called mirc.xml change ext=“.mRC” to ext=“mRC” (no dot) open udl and use import select your file coose mIRC from user language dropdown box to verify loaded keywords restart npp - done Regarding the language itself you can ask here but I guess you need someone who writes the lexer for mIRC. Cheers Claudia
  • Auto-completion dual monitor bug

    Locked bug auto-completion
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC
    Do you have the nvidia specific manager software installed? I don’t talk about the driver, the software which allows you to manage multiple monitors formerly known as nview manager. If so, there was a possibility to disable the software and rerun the test. Cheers Claudia
  • Default size in Tab List using [Ctrl]+[Tab]

    Locked switch window hotkey tab
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello René-Treviño-Hernández, afaik no, you can only enable/disable the popup and have mru (most recent used) functionality. Cheers Claudia
  • Function list with track of location

    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC
    Hello Erik-van-den-Berg, no, I don’t think so, as the function list isn’t part of the plugin interface provided by npp. It is a plugin itself. I thought about a python script solution using some of the window api functions like findwindow, enumwindows etc. provided by windows os, but this would mean some need to install the win32 modules as well and messing around with these window handles might make npp unstable. So, no, sorry, I don’t see any easy solution yet. Cheers Claudia
  • 0 Votes
    6 Posts
    4k Views
    Divya BolarD
    Thanks much for your comments and help guys!! Yes that’s what I was referring to (i.e. highlighting each line); I liked that functionality! I’ll post if I figure out any work-arounds through style-configuratory etc. Best, Div
  • Notepad++ is guessing the wrong ANSI character set for certain texts

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    Hello Per-Siden, I guess I have a more or less good workaround. Uncheck Autodetect character encoding from Settings->Preferences->MISC. In Settings->Preferences->New Document select the Encoding you want by using the dropdown list. If you use the session functionality Settings->Preferences->Backup take care that you close any document with different encoding before restarting npp, otherwise it will load the codepage from the information within then session files. Cheers Claudia
  • error message

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Reinhard, do you have a little bit more information on this? Which npp version on which operating system. Can you try the same but npp started with -noPlugin or -noPlugins (depends on the version used) switch? What is the content of such a .txh file? What is different in regards to a default setup of npp? Cheers Claudia
  • tab labelling

    5
    0 Votes
    5 Posts
    5k Views
    René Treviño HernándezR
    It’s a great idea to label the tab, especially the new files in that tab is labeled with “new #”, where # is the number of the tab. I work with many files projects (sessions) SQL, and on many occasions add procedures to compare the files I have open, I would like to identify these new files that will not save, to access them quickly, thereby labeling said tab, and remember all new files only “new #” in the name of the TAB is complicated.
  • Disable popup menu

    3
    0 Votes
    3 Posts
    5k Views
    sleetskateS
    Thx .
  • Custom functions list rules

    custom functions list
    8
    0 Votes
    8 Posts
    8k Views
    Claudia FrankC
    Hello Keurfon-Luu, regarding the cygwin/NppExec problem I don’t have any experiance here but from what I read on the web (discussion between MS and cygwin devs) it seems that it isn’t easily solveable. And bringing NppExec inbetween seems to be another step of complexity. Regarding the regular expression, I assume there is a bug in function list code. Becasue when using the find dialog with regular expression everything gets found as expected. The workaround seems to be that you add an additional space char at the end of the function line like subroutine hello()__one_extra_space_char print *, "Hello World!" return end subroutine hello then it is found. Or, the problem is still between monitor and chair and I still have problems understanding regex. Sorry Claudia
  • Prevent recent files from auto-opening?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD
    Settings -> Preferences -> Backup -> Remember current session for next launch
  • Not showing javascript styles

    11
    0 Votes
    11 Posts
    12k Views
    Andres CorrealA
    I am having this problem with javascript files in 6.8.8. I was fine before just installing. Issue occurs whether in as admin or not. Have to associate each file independently to get it to work. Would rather it recognizes it the .js extension and does it automatically.
  • Fail to setup Notepad++ and Python

    5
    0 Votes
    5 Posts
    24k Views
    guy038G
    Hi Claudia Brilliant and clear guidelines on Python Script and NppExec plugins installation and their interactions, I backup the link of this post, which should be useful, no doubt, to many people ( and me too ! ) Cheers, guy038
  • Resize plus sign for level groups

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Gregorio-Alonso-Calvo, if you mean by changing some configuration settings, afaik no, sorry. Cheers Claudia
  • Alphabetizing a list,

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    Hello Terry-Stone, select the text and then goto menu TextFX->TextFX Tools and choose one of the sort functions. Cheers Claudia
  • perl lexer broken

    Locked perl
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello Hugh-Myers, the keywords can be added. Within the npp installation directory goto the …Notepad++\plugins\APIs directory and edit the perl.xml file accordingly. Regarding the references, it sounds like it was working before, wasn’t it? I checked the bug and features request and didn’t see any ticket referring to it. So if it was working and now doesn’t you may open a bug ticket here or if it wasn’t working before you may open a feature request here. Cheers Claudia
  • LanguageTool Plugin

    Locked spell checker languagetool plugin
    9
    0 Votes
    9 Posts
    8k Views
    CableWombatC
    Hi Claudia, ah, that explains a lot. That saves me from a lot of failing tries. Thanks for investigating!