• Search in *.txt Files for a string that's not in and add it

    4
    0 Votes
    4 Posts
    151 Views
    OdyseusO

    @Terry-R said in Search in *.txt Files for a string that's not in and add it:

    (?s-i).?Keyword=notIndexedvalue.\K|(.*\K)

    Hello Terry,
    thank you so much… Works very fine for me…

  • 0 Votes
    2 Posts
    121 Views
    guy038G

    Hello, @alexandru-tanasa and All,

    Which kind of text or literal text needs to be bold ?

    Which file type are you using ( For instance, a Markdown file with extension md )

    How you presently obtain the change of ‘some_text’ into ‘some_text’ ?

    Note : You can use the </> option to write raw text, in your next post !

    Best Regards,

    guy038

  • 0 Votes
    12 Posts
    1k Views
    Ohm DiosO

    Re: First thanks to @PeterJones, @Alan-Kilborn, @guy038. And sorry again for showing my lack of coding. I am an Electrical Engineer almost 14 years in that filed. Last few years into computer programming learning and studying on my own and one day found notepad++ after that I must say I am addicted to that. Whenever I have problems I refer forums(including notepad++) and study materials. I usually spent a lot of days for finding solution. After everything fails then only I will put my query here. From now onwards I will spend more efforts to studying and understand. @guy038 Dear sir, You are not only providing a solution, Its Love.
    Again all, Sorry for Taken your valuable times and assure you I won’t come again without 100% tried my self after studying the required materials.
    Best Regards,
    Ohm-Dios

  • Replacing a value with many different values

    5
    0 Votes
    5 Posts
    2k Views
    prahladmifourP

    Hello,@Felix-Gladitz
    Please try this command, To Replacing a value with many different values

    Take a look at Sed. You can easily achieve your goal with only one command line

    sed -e “s/Text_1/TextA/” -e “s/Text1/TextB/” <your_file.txt>your_file_new.txt

    I hope this command will be useful to you.
    Thank you.

  • Changing Data inside XML element

    27
    0 Votes
    27 Posts
    5k Views
  • Notepad++ "Projects" info

    17
    3 Votes
    17 Posts
    5k Views
    ArkadiuszMichalskiA

    Looks like changing name in file item changes also it path. This not happend when we rename folder item. For me it looks like a bug, both the name for folder/file item in list is just a label (which can be changed) but the real source should be indicated by path.

  • How to make Notepad++ default for Windows 10?

    2
    0 Votes
    2 Posts
    942 Views
    PeterJonesP

    @Pericles-Christofilopoulos ,

    I would like to know how to make Notepad++ the default program for Windows 10

    I hope you don’t mean “make Notepad++ the default program for all file types in Windows 10” – I would hate to have .bat automatically edit instead of running, or .xlsx files open up as gibberish in Notepad++ instead of opening in my spreadsheet program, or …

    If you mean “make Notepad++ the default program for a given file type in Windows 10”, that seems a much more reasonable request. There are multiple ways to try, depending on how you like doing things, and whether Windows 10 is feeling in a cooperative mood.

    In Windows Explorer, right click, and **Open With…*, setting it as the default for that extension. This will often work, except when it doesn’t. (Sometimes, conflicting background Windows settings will mean it won’t find Notepad++ , even if you navigate right to notepad++.exe; and sometimes, Windows refuses to save that) Open Notepad++ as Administrator, then Settings > Preferences > File Association, and use the -> button to register Notepad++ with the selected file extension(s) Use the registry There are some who like to trick Windows into running Notepad++ anytime that windows would try to run notepad.exe – enough that there’s a section in the usermanual about it … but using the registry to trick Windows into thinking it’s launching a different program seems a foolish thing to do (and seems to me a feature that could be abused by hackers), when you can use the registry to teach Windows to do the right thing

    Personally, plaintext files are the only file type I associate with Notepad++; everything else, I use the Windows RightClick > Edit with Notepad++ entry that you can get when you install Notepad++ (or can manually install).

    Here are some other posts on similar queries I have participated in; these other topics might help you with problems you run into while fighting the quagmire that is Windows 10 File Association:

    https://community.notepad-plus-plus.org/post/62576 https://community.notepad-plus-plus.org/post/62091 https://community.notepad-plus-plus.org/post/61540 https://community.notepad-plus-plus.org/post/56688 https://community.notepad-plus-plus.org/post/54317 https://community.notepad-plus-plus.org/post/52315 https://community.notepad-plus-plus.org/post/50774

    That’s about a year’s worth. Probably far enough back in my search.

  • How to add a gap between letters and border of N++ window?

    25
    1 Votes
    25 Posts
    2k Views
    PeterJonesP

    @Nikola ,

    if the border was only white not gray

    Settings > Style Configurator > Language: Global Styles > Style: Fold Margin, change the Background Colour to white (or whatever non-gray color you prefer)

    I wanted to try the trick with Pyton Script plugin but I would need step by step instructions

    Plugins > Plugins Admin: in the Available tab, enable ☑ Python Script and Install. Notepad++ should restart after installing the plugin Plugins > Python Script > Scripts: in the resulting sub-menu, Ctrl+Click on the Startup (user)
    (if you normal-click, it will run the script; ctrl+click will edit the script – you want to edit it) It will open a file in Notepad++. At the end of that file, add the lineseditor1.setMarginLeft(30) editor2.setMarginLeft(30) and save that file. Plugins > Python Script > Configuration…. Change the Initialisation: drop-down to ATSTARTUP, and click OK Exit and restart Notepad++.

    This should set wider margins. If it’s too wide or too narrow, use a smaller or larger number than 30 (bigger number means wider)

    If it doesn’t work for you, show us your ? > Debug Info, and give us screenshots showing your edited startup.py open in Notepad++, and maybe with the Plugins > Python Script > Show Console showing, so we can see if there are any unexpected error messages

  • 0 Votes
    2 Posts
    265 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
    217 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
    323 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
    1k 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
    17k 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
    297 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
    152 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
    171 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
    151 Views
    Ilyassb02I

    @guy038 thank you man. worked like a charm

  • HyperText

    4
    0 Votes
    4 Posts
    247 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
    144 Views
    kracovwolfK

    Thanks! I love this forum and program

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

    2
    0 Votes
    2 Posts
    828 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!