• 0 Votes
    2 Posts
    381 Views
    astrosofistaA

    Hi @Janaranjan-Sahoo

    Probably you have already done this, but anyway here it goes: For a basic and visual explanation of the Multi-Editing feature, first off read Notepad++ User Manual.

    Then, for more advanced examples involving the BetterMultiSelection plugin, please take a look at these problem-solving animations and follow the instructions to better grasp how the plugin works and enhances the standard Multi-Editing feature:

    https://community.notepad-plus-plus.org/post/53667
    https://community.notepad-plus-plus.org/post/54925
    https://community.notepad-plus-plus.org/post/51906
    https://community.notepad-plus-plus.org/post/53168 (explanation)
    https://community.notepad-plus-plus.org/post/51915
    https://community.notepad-plus-plus.org/post/51786

    Take care and have fun!

  • Finding every third line that doesn't begin with Todd Easton

    6
    0 Votes
    6 Posts
    291 Views
    Todd EastonT

    Thanks guy038 and Alan Kilborn for your quick assistance!

    guy038’s first method seems to work great. I’m using his expression with Mark All and then skipping from student to student in the transcript using F2.

    This is much more fun than a visual search for student names!

  • Vertical line

    4
    0 Votes
    4 Posts
    400 Views
    WhiskyDripW

    @WhiskyDrip Addendum 72 was the Character length for e-mail lines back in the day :~)

  • Batch Decimal Rounding

    4
    0 Votes
    4 Posts
    2k Views
    Ramon CanetR

    Thanks, Peter for your Thorough reply.
    I´ll come back with some clarifying examples and cover beforehand the whole scenarios in deep.

  • Install command line parameters

    4
    0 Votes
    4 Posts
    19k Views
    PeterJonesP

    @Arbus33 said in Install command line parameters:

    shell interaction (may be added by regedit…)

    Good point. You could run a batch script afterwards that set up the registry links.

    Or, you could do a normal silent install in English, then copy/unzip a pre-built %AppData%\Notepad++ folder with the language selected for the user

  • edited shorcuts.xml does not affect npp

    3
    0 Votes
    3 Posts
    387 Views
    PeterJonesP

    @cmeriaux said in edited shorcuts.xml does not affect npp:

    manual modification of shorcuts.xml is tricky because the file is loaded at Npp startup, and is NOT reload during Npp runtime.
    You should try to edit shorcuts.xml with another editor than Npp

    While I agree that you have to follow a specific order, it is quite possible to edit shortcuts.xml, or the other Notepad++ config files, from inside Notepad++. I do it all the time. The sequence described in the online user manual works for me, as long as you do not make any Notepad++ settings changes in the GUI from steps 2 thru 5.

    Close all active instances of Notepad++ Open one instance of Notepad++ Edit the configuration file Save Exit Notepad++ Reload Notepad++ The changes will now be in effect.

    The other issue that @Niels-Henrik-Bruun might be dealing with: before v7.6.3, there was an active Launch in IE entry in the “User Defined Commands” (Run-menu) section of shortcuts.xml. In v7.6.3, those lines were put in XML comments, so that they weren’t actively in the menu. (In v7.9.3, the commented-out lines were completely removed from the default shortcuts.xml that ships with Notepad++.) So, if the version that @Niels-Henrik-Bruun started with was v7.6.3 to v7.9.2 (that is, nearly any version in the last two years), the Launch in IE <command ...> tag was inside the <!-- ... --> XML comment, and would not affect Notepad++ whether edited in an external editor, edited in Notepad++, or not edited at all.

    Another issue might be if the c:\program files\notepad++\shortcuts.xml is being edited, but the normal installation is used so that %AppData%\Notepad++\shortcuts.xml is the version being read 🛈, it will also have no effect. Which is the correct shortcuts.xml can be determined by your settings: if the ?-menu’s Debug Info shows Local Conf mode : ON, then you edit the shortcuts.xml in the same folder as notepad++.exe; if you have cloud settings (Settings > Preferences > Cloud & Link has the cloud location path set), then your shortcuts.xml should be edited in that location; otherwise, %AppData%\Notepad++\shortcuts.xml is the right file to edit.

    So, @Niels-Henrik-Bruun, to sum up:

    Make sure you are editing the right shortcuts.xml – the cloud folder file, the file in the notepad++ executable’s folder, or the file in the %AppData%\Notepad++ folder Make sure you are properly editing the file: either close all Notepad++ instances, and edit the file with some other editor; or follow the sequence that I included above and is in the online manual Make sure that the <command...>...</command> tag is not inside of the <!-- ... --> XML comment Changes won’t take effect until Notepad++ has been re-started after the edits (step 6-7, above)
  • Sesion manager , not restart notepad++

    2
    0 Votes
    2 Posts
    200 Views
    mere-humanM

    Hi,
    Take a look at this issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9475
    Is it the same?

  • How can I select text from different parts of a document.

    2
    0 Votes
    2 Posts
    220 Views
    guy038G

    Hello, @michael-haigh-0 and All,

    Just two constraints :

    Your (*###) tags must begin the line OR are preceded with blank space chars only. But these tags may be followed with some text

    You must run, at least, the v7.9.1 N++ release or a later one

    If so, the road map is :

    Open your file in N++

    Open the Mark dialog ( Ctrl + M )

    SEARCH (?s)^\h*\(\*1\).+?(?=\(\*\d+\)|\z)

    Tick the Purge for each search option

    Tick the Wrap around option

    Leave all other options unticked

    Select the Regular expression search mode

    Click on the Mark All button

    Click on the Copy Marked Text

    Close the Mark dialog ( Esc )

    Open a new tab ( Ctrl + N )

    Paste the clipboard’s contents ( Ctrl + V )

    => Each (*1) section is natively separated with a blank line and a ---- line ;-)

    Now, just get concentrated !

    Of course, change the 1 of the regex by any number required !

    Best Regards,

    guy038

    P.S. :

    You may, as well :

    Tick the Bookmark line option, in the Mark dialog, before clicking on the Mark All button

    Close the Mark dialog ( Esc )

    Go back to the very beginning of your file ( Ctrl + Home )

    And, simply, browse through each Bookmarked line, with the F2 or Shift + F2 shortcuts !

  • Notepad ++ place switching

    3
    0 Votes
    3 Posts
    228 Views
    Ilyassb02I

    @guy038 thank you man. worked like a charm

  • HyperText

    4
    0 Votes
    4 Posts
    319 Views
    WhiskyDripW

    Hello.
    Problem solved. Thanks to @carypt over on > < https://github.com/notepad-plus-plus/notepad-plus-plus >

    Link here for the User Defined Language.
    https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/udl-list.md

    WD

  • Regex lines

    3
    0 Votes
    3 Posts
    181 Views
    kracovwolfK

    Thanks! I love this forum and program

  • Delimiter Settings (Ctrl + Double Click) to include more brackets

    2
    0 Votes
    2 Posts
    960 Views
    astrosofistaA

    Hi @ijoel92

    Not natively. But there is a Python script that I think does what you want.

    See details in this and subsequent posts.

    If you want to try the script, here are some instructions to install it:

    Have fun!

  • Notepad++ Search and Replace From List With Limited Replacements

    3
    0 Votes
    3 Posts
    2k Views
    Alan KilbornA

    @Meathead

    It’s really a rather easy thing for a scripting plugin to do, as Peter says.

    Here’s a demo using PythonScript; see if you can follow its logic without further explanation:

    from Npp import editor city_string = ''' Sydney Melbourne Adelaide ''' city_list = city_string.splitlines() city_list.pop(0) for city in city_list: editor.replace('city', city, 0, 0, editor.getLength(), 4)
  • 0 Votes
    8 Posts
    470 Views
    gstaviG

    @Egor-Artemenko said in Lags during up and down navigation with arrows on large PHP-file, 500 Kb, 16k lines:

    Another tweak is detecting fast actions

    Extremely unlikely.
    The core design of Notepad++ and Scintilla is single threaded.
    Once an “event” should do some computation this computation is happening and even if it is unexpectedly long there is no way to abort it.
    With “fast actions” which is practically 2 quick events the 2nd event cannot influence the 1st event.

  • How do I change file tab's font name and size ?

    3
    0 Votes
    3 Posts
    584 Views
    Terry RT

    @PeterJones said in How do I change file tab's font name and size ?:

    I believe it may be influenced by Windows theme settings

    If it is influenced by the Windows settings, then on Windows 10 the changes must be done in registry (was removed from control panel since previous Windows version).
    Have a look at:
    https://www.windowscentral.com/how-change-default-system-font-windows-10
    which outlines the method. This is not something to be taken lightly as there’s no fail-safe as would be available when it is run through a GUI.

    Terry

    PS I haven’t tested this yet as my company dislikes these sorts of changes done by users.

  • Call Notepad++ from Firefox to edit Text Field?

    4
    0 Votes
    4 Posts
    407 Views
    Pierre de la VerreP

    Thanks for your replies!

    @wonkawilly said in Call Notepad++ from Firefox to edit Text Field?:


    Easy, direct, and no plugins or scripting needed.

    If you want to complicate things use addons to make easy tasks like this more difficult. Addons are powerful but it must worth their use and for this I’m not sure

    I got this job from colleagues which used the old version of add-on “withexeditor” and told me “it’s so fine and so important and …”, but the more I look at it (and the value behind it …) the more I have doubts about the time to invest for a “simple solution”

  • Error Reporting

    2
    0 Votes
    2 Posts
    248 Views
    EkopalypseE

    @Georg-Hohmann

    There is an issue with the NppSaveAsAdmin plugin,
    can it be that you are using it as well?

  • how to put numbers every two rows?

    16
    0 Votes
    16 Posts
    1k Views
    Alan KilbornA

    @wonkawilly said in how to put numbers every two rows?:

    there is a little error in the row

    It’s OK. BTW I didn’t go step by step through to check for accuracy.
    It’s enough that you very clearly showed the technique, enough to get someone started down that same path.

  • Changes not taking

    2
    0 Votes
    2 Posts
    246 Views
    Ward RickerW

    @Ward-Ricker Well, now to answer my own question. I have uninstalled and reinstalled Notepad++ once again. This time it seems to have fixed the problem. I don’t know why it didn’t fix it the first time, but apparently I am all set.

  • NPP is closing files instead of 'storing' them

    2
    0 Votes
    2 Posts
    178 Views
    EkopalypseE

    @John-Johnson

    Looks like the setting remember current session for next lauch has been reset. Settings->Preferences->Backup->Remember…