• Mystery Special Character appearing in files.

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    Hello John-R-Ownby-Hibner,

    what do you mean by

    keeps getting a ‘special character’ added

    ?
    Does it mean while editing the file you suddenly have those chars listed?
    Can you check which encoding is used when editing the file?
    Which npp version and operating system do you use?
    Where does this file come from? Different os like Linux, Mac, …

    Can you make a screenshot and upload it to imgur or similar hosters?
    imgur, no registration required.

    Cheers
    Claudia

  • How do I add 'Open with Notepad++' to Windows 10 right-click in Explorer?

    Locked
    2
    0 Votes
    2 Posts
    42k Views
  • List of available macro messages / types

    Locked
    3
    0 Votes
    3 Posts
    9k Views
    Claudia FrankC

    Hello Rudi,

    in addition, the npp wiki has some information about this.

    Cheers
    Claudia

  • Shrinking file size to the new smaller contents on exit

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    I still think this is related to the session snapshot and periodic backup functionality.
    A few questions

    I have a number of bash and perl scripts that depend on the size of a file after an editing session

    What means editing session? You edited the file or the bash/perl scripts?

    What I’ve seen from npp (Notepad++), is that if you just close the editor, it will write the file, but it doesn’t shrink the size of the file to the new smaller size.

    As said, this sounds like snapshot and periodic backup functionality is ative, because otherwise
    npp would ask you whether to save any of the modified files. Is this the case? Does npp
    ask you to save the files if you close the editor?

    It is updating the file, in that the content is gone on next edit, or run (if a script), but the file size does not change!

    How do you check that the file size didn’t change? Did you try to open that file with a different
    editor, preferable a hex editor? Is it still empty?

    Cheers
    Claudia

  • When Windows is shut down improperly, NPP forgets files.

    Locked
    6
    1 Votes
    6 Posts
    4k Views
    Claudia FrankC

    I still think you can’t blame npp if windows shuts down abnormally but I understand
    your argument that having mru list and opened files recorded more often it might
    have recognized it when starting up again but still, there cannot be a guarantee that
    it will always work. Btw. do you know that there is a backup and session snapshot functionality?
    Settings -> Preferences -> Backup-> “Enable session snapshot and periodic backup” maybe this
    can assist you in addition. In the meantime you could ask for an enhancment/feature request
    here.

    Cheers
    Claudia

  • downloading notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    It depends what you downloaded exactly. The exe can be ran by Windows, the zip can be extracted by Window’s default zip application, and the 7z can be opened by 7-Zip.

  • Python plugin - problem with setFirstVisibleLine

    Locked
    9
    0 Votes
    9 Posts
    5k Views
    DaveyDD

    Hi Scott, thanks
    Yes, I do recognize that forum, I actually have some scripts there I think
    I was actually debating for a few minutes where to post it… :)

    Thanks,
    Davey

  • Python plugin - handling many scripts...

    Locked
    11
    0 Votes
    11 Posts
    7k Views
    DaveyDD

    Hey Claudia!
    Nice! I understand now fully!
    (I got mixed up with the name of the variable and the value…)

    You’re wonderful!!
    Thank you
    Davey

  • Help with regex

    19
    0 Votes
    19 Posts
    13k 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
    3k 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
    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
    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
    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 .