• Unicode Combining Characters

    5
    0 Votes
    5 Posts
    5k Views
    guy038G

    Hi, @gstavi,

    Of course, I’m quite agree with you ! N++ users doesn’t care, most of the time, about good appearance of exotic diacritical marks.

    And yes, I noticed, for instance, that, with Microsoft Word 2002 SP3, some usual diacritical characters, as U+0307 , U+030f , U+0311 and U+0325, are not represented, with my Times New Roman font, although they are well displayed in Notepad++, with the similar font !

    Note that, when you write, in a true UTF-8 BOM encoded file, within N++, the string ab, with a diacritical mark on the a letter, that is to say the string âb, it’s, really, a set of three independent characters and when you select it, you do get a three-characters selection !

    The letter a ( U+0061 ) + the combining circumflex accent ( U+0302 ) + the letter b ( U+0062 )

    You may search for any of them, with the syntaxes \x{0061}, \x{0302} and \x{0062} and when you hit the right arrow key, you’ll be convinced of these 3 characters !

    In Microsoft Word, the well displayed letters, with their associated diacritical mark are, logically, considered as an unique character !

    See also the difference with the simple â letter, of the C1 Controls and Latin-1 Supplement Unicode block, which represents an unique character, of Unicode code U+00E2

    Cheers,

    guy038

  • Copy or extract only part of text

    Locked
    2
    0 Votes
    2 Posts
    15k Views
    guy038G

    Hello @tanja-correl,

    Hum…, You don’t speak about the number of your files and about their average size

    Moreover, do you mean that, in all your files, you’re looking for the id-numbers, in the exact line, as below ? ( dots refer to any text )

    Story URL:......................./id-number/.../

    If so ( I mean, only one zone /…/ after the id-number till the end of line ), here is my first attempt :

    Firstly, recopy all your files in a new directory ( IMPORTANT )

    Start N++ and open the Find in Files dialog ( Ctrl + Shift + F )

    In the Find what: zone, type the regex (?s-i).+\RStory URL:(?-s).+/(.+)/.+/$(?s).+

    In the Replace with: zone type \1

    In the Filters zone choose *.txt or your own extension

    In the Directory zone, indicate your new directory, containing a copy of all your files

    Check the Regular expression search mode

    Now, click on the Replace in Files button and valid the Are you sure dialog

    => Each file should only contain, from now on, the id-number of its Story URL line

    Now, :

    In the Find what: zone, type the simple regex .+

    In the Replace with: zone, type, for security, the regex $0

    Click on the Find All button

    => The Find result panel should appear, with all the id-numbers, in line 1, of all the files

    Finally, to get all the id-numbers, in an unique file, two solutions are possible :

    First solution :

    Right click, on any part of the Find result panel and select the Select All option

    Right click, again, on any part of the Find result panel and select the Copy option

    Open an N++ new tab ( Ctrl + N )

    Paste the previous selection, in that new tab ( Ctrl + V )

    => The id-numbers, exclusively, are recopied !

    Second solution :

    Right click, on any part of the Find result panel and select the Select All option

    Hit the classical Ctrl + C shortcut

    Open an N++ new tab ( Ctrl + N )

    Paste the previous selection, in that new tab ( Ctrl + V )

    => This time, each id-number, and the name of their associated file, are written !

    Notes on the initial regex :

    From the very beginning of file, due to the modifiers (?s-i), the regex .+\RStory URL: grabs all characters ( included EOL ones ), till EOL character(s), followed by the string Story URL:, in that exact case

    Then, due to the modifier (?-s), the regex .+/(.+)/.+/$ looks for the remainder of the Story URL line, catching, with the parentheses, the id-number (.+) in group 1

    The final part (?s).+ matches all the lines, after the Story URL line, till the very end of the current file

    So, in replacement, all the contents of each file are simply replaced by the unique id-number \1

    Best Regards

    guy038

  • No external changes noted before file saved?

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Ben VorisB

    I would expect Notepad++ to reliably inform me that the file was changed.

  • File size limit on the notepad ++ 7 X64 ?

    Locked
    4
    0 Votes
    4 Posts
    8k Views
    Claudia FrankC

    @Gontran-Aberdeen

    welll in theory it can be changed. If you replace INT_MAX by _I64_MAX and some code to
    refelct the int to int64 changes you get a max of 9223372036854775807 bytes.
    But no one has done this yet.

    You could give it a try and ask here for an enhancement.

    Cheers
    Claudia

  • How can I control font when printing?

    4
    0 Votes
    4 Posts
    5k Views
    PeterJonesP

    As Gogo said, for the body of the text, font is the same as what’s in the window. Thus, it’s influenced by the settings in the Settings > Style Configurator, including the Language: Global Styles > Style: Default Style > Font Style: Font Name, but actually it applies all the same formatting you see in your editor (including the various stylings for the various elements of whatever language you have selected). If you have the Settings > Preferences > Print set to Colour: ☑ WYSIWYG, it will even print in color (if you have a color printer), so dark-theme users, beware.

    If you don’t like the display size vs print size (ie, if you make a small font size due to printing, but it makes it too small to see on your ultra-high-def-giant-screen-monitor), you could either change the Style Configurator font size every time you print and change it back when done, or use View > Zoom > ... to change the size of what’s displayed.

    Hope this helps.

  • Function List has Stopped Working in Notepad++ v7.5.1

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Change process name (or compile Notepad++)

    Locked
    1
    0 Votes
    1 Posts
    922 Views
    No one has replied
  • Regex is driving me up the wall

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Anthony-Bouttell

    One problem is that your use of .* is grabbing too much. You’ll want to change that to .*? which will match the minimum amount. And then the *.* looks too much like CMD shell wildcard/globbing…

    I’m away from Notepad++ at the moment so I can’t actually try it out, but maybe something like this will work, or at least give you a boost:

    Find-what zone: ISNULL.*?\]
    Replace-with zone: $0,''

    In words: match ISNULL through the immediately following closing bracket, replace the match with what was found (represented by $0) plus a comma and two single-quotes.

  • How to recovery an backup

    Locked
    1
    0 Votes
    1 Posts
    892 Views
    No one has replied
  • refresh file

    2
    0 Votes
    2 Posts
    7k Views
    Mike TarggartM

    Go to Settings>Shortcut Mapper and set a shortcut/hotkey for the item ‘Reload from Disk’ (line item 6). I set it to F5, which by default is the hotkey for ‘Run’ ( line item 271). I don’t use Run, so I set that to None. Now when I want a file to refresh, I can just hit F5.

  • Good way to visualize replacement?

    Locked
    6
    3 Votes
    6 Posts
    3k Views
    Scott SumnerS

    @Alan-Kilborn

    leaves some colors in my documents (even documents that weren’t involved in the compare! Yuck!)

    Maybe the Compare plugin is using some “indicators” that you are using in some other way–so that there’s a conflict? Check other plugins, maybe, for overlap?

    It seems like it would be fairly easy to write a Pythonscript to mimic the Compare plugin’s Diff since last save functionality, using Beyond Compare instead, something like this as the last lines of a script:

    with open(unsaved_changes_file_path, 'w') as f: f.write(editor.getText()) subprocess.Popen([ beyond_compare_prog_path, unsaved_changes_file_path, notepad.getCurrentFilename() ])

    I think I remember that you are familiar with Pythonscript so I’ll leave completing the whole to you…

    @MAPJe71 , I think the original request takes it to a level beyond what “change markers” can provide.

  • Search and replace help

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Anil AniA

    Notepad

  • Windows 8.1 & notepad ++

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    decodermanD

    Here’s an old discussion that proves my theory as the original poster never deemed it worthwhile to reply with the solution:
    https://sourceforge.net/p/notepad-plus/discussion/331754/thread/fca513a6/

  • Program doesn't exist. Create it?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Annoo-shee

    and at the end notepad++ starts?
    If so, can you show us the debug-info which you can find under ? menu?

    It looks like your system has a problem with spaces in the path or that the installation wasn’t
    correctly done.

    You could also try to delete the shortcut and recreate a new one.

    Cheers
    Claudia

  • Monitoring Feature not updating "automatically"

    10
    0 Votes
    10 Posts
    17k Views
    Claudia FrankC

    @Bruno-Medeiros

    afaik, npp does not actively poll a file for its current state, instead it is using the windows event system to get informed when a file has been updated.
    This technique has several advantages like
    no ressources will be wasted while monitoring files, you can monitor many files without having
    impact on the editor itself etc… but, obviously, has also a disadvantage, that is that the windows
    event system doesn’t receive update information on files which aren’t updated in the “correct way” .
    The “correct way” means, an application needs to flush the changes or close the file after writing
    in order to generate such events.

    A simple example using the python script plugin.
    Let’s assume you want to monitor a file C:\test_monitoring. Let’s do the the following
    We create the file by using

    f = open(r'C:\test_monitoring','w')

    now let’s open the tile in npp and press monitoring button you should the the following

    ok, let’s try to write something to the file like

    f.write('this is a test')

    and you will see that npp doesn’t get informed about the update.

    but once the application which updated the file does a flush or close on that file like

    f.flush() f.close()

    the windows event system recognizes this and send the event to npp

    As said, simple example because it gets even more complicated when the file to be monitored
    is on the network or on an external usb disc or drive.

    Cheers
    Claudia

  • Stop switching documents when reloading because file changed on disk

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cmeriauxC

    try the option “MISC/File Status auto detection/Update silently”

  • shortcut.xml not showing my macros

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Paola-Camacho

    depending how you installed npp you do have two shortcuts.xml files.
    One in INSTALL_DIR\notepad++ and, probably, one in %APPDATA%\notepad++
    Check both, one should have listed your macro.

    Cheers
    Claudia

  • question on editing .cfg files

    3
    0 Votes
    3 Posts
    2k Views
    Jim DaileyJ

    @Steve-Simmons

    Problems like this are easily solved using a scripting language like AWK, PERL, or Python.

    If you need to manipulate text files very often, it is well worth your time to learn one (or more) of these languages.

    AWK is the easiest to install (one exe file; I recommend gawk for windows) and use (not a ton of functions, very C-like if you are a C programmer).

    PERL and Python have much more ability to interact with other system components (that is, they can do a lot more than manipulate text), but they require you to install a bunch of files and are a bit harder to learn.

    Python is the it scripting language right now, so you’ll find lots of people willing to help you with that.

  • How to change scroll bar font?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Vasile-Caraus

    afaik such components are bound to the windows theme and cannot
    be modified by npp.

    Cheers
    Claudia

  • Removing tabs on Notepad++

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Denislav-Dimitrov

    sorry but I don’t get the point. Do you want to have the current document closed if you open another one automatically? Or something other?
    You don’t look for Settings->Preferences->General-TabBar check Hide, do you?

    Cheers
    Claudia