• Export Notepad++ to a new computer

    Locked
    3
    0 Votes
    3 Posts
    11k Views
    Jim DaileyJ

    @Maryvincent-Hussein

    Also, if you install notepad++ using the “portable” option (at least I think that is what it is called), then most (perhaps all) your files will be somewhere within the directory where you install. Then you can simply zip up that directory and unzip it on some other computer.

    I’ve been sharing my notepad++ setup with co-workers this way for some time now. They get all my plug-ins, various XML configuration files, user-defined languages etc. as if they were part of notepad++.

  • 0 Votes
    4 Posts
    1k Views
    Daniel marksD

    Fixed! the texts is in windows.old/users/appdata/roaming/notepad++/backup just copy backup folder inside the actual place.

  • Is it possible to edit/modify a "Language"

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Jim DaileyJ

    @Henri-Monnier

    Short of modifying the lexer or creating a user-defined language, there are a couple of small changes you can make to the way a language is highlighted.

    First, you can add new “words” of various kinds to be highlighted by editing the stylers.xml file.

    Second, you can use the menu option Settings–>Style Configurator to change the appearance of various language features.

  • QUICKFIX for python

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Kartik ParasharK

    Got it, thanks.

  • Regular Expression, How to a delete Symbol

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Rumi BalkhiR

    Sorry for that. Would you please help in this case

  • Mixed Line Ending Detection. Possible?

    12
    0 Votes
    12 Posts
    7k Views
    Scott SumnerS

    @Scott-Sumner said:

    normally it is a difficult task to get a wrong line-ending in your editor buffer

    Apparently I shouldn’t have made that statement, as I keep proving it wrong…

    I normally work with Windows formatted files with \r\n line-endings. I just noticed that pressing ctrl+m (which got done when my fingers got tangled up) will insert a Mac format line-ending \r in my Windows files–blech!.

    :-(
  • Liberty Basic

    Locked
    1
    0 Votes
    1 Posts
    632 Views
    No one has replied
  • Find / Replace with TOOLBUCKET

    Locked
    3
    2 Votes
    3 Posts
    1k Views
    Rübel RundR

    Thanks a lot.

    It works with a little change(REPLACE: $0(HELLO WORLD\r\n) ) in my file.

  • how to restore default shortcuts

    Locked
    7
    1 Votes
    7 Posts
    3k Views
    Meta ChuhM

    @Scott-Sumner

    got one more ;-)

  • relative paths in search results

    5
    2 Votes
    5 Posts
    21k Views
    Scott SumnerS

    I would think (haven’t checked the Notepad++ source code) that in order to jump to hits when they are double-clicked in the Find result panel, Notepad++ actually reads the data out of the panel itself to determine file path…so it can switch to (or open) the necessary file and jump to the correct line.

    Thus, I would modify my previous suggestion from showing only this in the Find result panel:

    ...\lua\effects.lua (2 hits)

    to displaying something more along these lines:

    ...\lua\effects.lua (2 hits) - C:\Users\Daniel\Documents\My Games\Wesnoth1.14\data\add-ons\World_Conquest_II\...

    That way Notepad++ could put the complete path back together when needed.

  • RegularExpression, replace with to keep some variables

    Locked
    4
    1 Votes
    4 Posts
    1k Views
    Terry RT

    Thanks for the correction guy038. It was late at night, and I didn’t test my answer before presenting it. Funny enough I had thought of capturing the \h and re-using it but I never presented that in my solution.

    Terry

  • How to add asterisk to a list of filenames and make it a line

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    guy038G

    Hello @sunil-kumar and All,

    Not difficult with regular expressions ! So :

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-s)(.+)\R

    REPLACE *\1*\x20

    Select the Regular expression search mode

    Move your cursor to the beginning of your list of files

    Click several times on the Replace button or once, only, on the Replace All button

    Voilà !

    Notes :

    As usual, the (?-s) modifier means that the regex dot character ( . ) represents a single standard character

    Then, the part (.+) stands for any non-empty range of consecutive standard characters, which is stored as group1, as embedded in parentheses

    The last part, \R matches any kind of line-break ( \r\n, \n or \r )

    In replacement, we rewrite an asterisk, followed by the filename ( group1 ), followed, again, with an asterisk and, finally, with a space character ( \x20 )

    Best Regards,

    guy038

    P.S. :

    A small drawback is that the last file, of the unique line, is, of course, followed with a space char, too !

  • Menu has disappeared in Notepad++

    4
    0 Votes
    4 Posts
    11k Views
    mycophagistM

    I guess it was deleting the %AppData%\Notepad++ that did it. After reinstalling, my menu is back. Thanks!

  • 0 Votes
    1 Posts
    498 Views
    No one has replied
  • Switch to already open file instead of opening a new instance???

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    guy038G

    Hello, @alx-fs and All,

    Assuming that, in Settings > Preferences... > MISC. dialog, the options Enable and Enable MRU behaviour, of the Document Switcher(Ctrl+TAB) part, are set, then, if several tabs exist in a single instance of Notepad++, you can switch between the last two accessed tabs, with the Ctrl + Tab shortcut, … in a similar way you would use Alt + Tab to switch between two instances of N++ !

    Best Regards,

    guy038

  • Persist Last Active Tab

    3
    1 Votes
    3 Posts
    976 Views
    Karen XavierK

    @Scott-Sumner Thank-you for the Windows 7 data point. Confirmed the 7.5.7 tab behavior change across all of our Windows 10 systems–versions 1607 and 1803. We are not experiencing any issues with 7.5.6 and will simply postpone our application upgrade.

  • Wrapping the line at X characters (N++ 7.5.7)

    Locked
    2
    2 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @randomeer said:

    Search mode is set at extended.

    You want Regular expression search mode for this technique, not Extended.

  • Help converting Notepad++ format to Pythonscript

    16
    0 Votes
    16 Posts
    4k Views
    guy038G

    Hi, @andrew-clark, @scott-sumner, @claudia-frank and All

    Ah :-(( I should have tested my idea of changing (?-s) into (?s), before posting. Actually, in case of multi-lines range of characters, between parentheses, the suitable regex S/R is , rather :

    SEARCH (\([^()]+?\))|\x20

    REPLACE \1

    Hope it’s the right one, this time :-D

    Cheers

    guy038

  • 1 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @Ramiro-Tell

    If I’m interpreting your request correctly, then putting the line below in contextMenu.xml will do what you want for ONE of the blank operations. Not sure if there is a way to get them ALL at once with a single line… anyway, easy enough to add n lines like this for the n functions you frequently use from blank-operations:

    <Item MenuEntryName = "Edit" MenuItemName = "Trim Trailing Space" FolderName = "Blank Ops -->" ItemNameAs = "NUKE Trailing spaces" />

    Yields the following in the right-click context menu:

    Imgur

  • 0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Vismund-Cygnus

    How about closing any open clipboard file first before running your “function that saves clipboard text to a file”? Seems like a lot of your problem would then not exist?