• 0 Votes
    8 Posts
    1k Views
    Alan KilbornA

    @andrecool-68 said:

    Control shot

    At least it appears he is properly attired, with the helmet, for said “control shot”.

  • how do I backup my macros?

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Keith-Albert said:

    not seeing the ones I created.

    Well, running a Windows application through a translation layer like WINE or similar on Linux will add a layer of obfuscation, so it’s going to be harder for us to guess where your translation layer put things. It might help if you said whether you use WINE or something different; then someone else who has direct experience with that setup might be able to be more explicit in their help.

    What I do know is that in Windows, there are two normal locations for shortcuts.xml: for a normal install, it goes in %AppData%\Notepad++\shortcuts.xml, and in a portable (“zip” or “7z”, “local conf mode”) edition, it just goes in the same directory as notepad++.exe. I would assume your translation layer would rename %AppData%\Notepad++ to something else more linuxy, but I don’t know what.

    If you look at Notepad++'s ? menu, at the Debug Info entry, you can Copy debug info into clipboard and paste it here; that would tell us whether Notepad++ thinks you are in standard-install or local-conf-mode, and might give more hints as to where it’s stored.

  • URLs don't open

    7
    0 Votes
    7 Posts
    4k Views
    Alan KilbornA

    @Mr-Brunes

    I certainly wasn’t intending on doing an exhaustive comparison of N++ and M$-Word for this feature. LOL

    I guess it falls into the category of “just how it works” in N++. TBH I never thought too much about it, just got used to how it is. :)

  • File auto-save function?

    4
    0 Votes
    4 Posts
    620 Views
    Alan KilbornA

    @Mr-Brunes

    Some plugins are developed before there is time for the core developers to put it in the app itself. At that point, developers shrug and say, “why bother?”

  • find, replace and Capitalize All First Letters...

    2
    0 Votes
    2 Posts
    728 Views
    EkopalypseE

    @Ricky-Shaw

    select the words and if you haven’t reconfigured default shortcuts then press ALT+U,
    otherwise goto menu edit->convert case to->proper case

  • Delete to EOL

    3
    0 Votes
    3 Posts
    1k Views
    Jon AppelberghJ

    Thanks Peter, that is doing what I needed.

  • 3 Votes
    34 Posts
    5k Views
    piranpiranP

    @guy038 said:

    I just hope that these two regex S/R work nice, too, on your VERY BIG unordered ASN data list ;-))

    Delighted to confirm that your hack (the first one) delivered a proper sort of the large listing (AS7552).

    If you’re curious my kit took some 48sec compared to the inconsistent ‘results’ provided by 7.7.1 in (what would’ve normally have been) about a second.

    Thank you @guy038 for providing that workaround to the native code’s flawed 7.7.1 …for which I await a fix.

  • Need to Move the macros

    9
    0 Votes
    9 Posts
    1k Views
  • 0 Votes
    6 Posts
    3k Views
    andrecool-68A

    @Alan-Kilborn
    For the Author of the question, the direct route to this page is:
    https://www.w3schools.com/tags/tag_img.asp

  • PHP syntax not highliting when inside other language string (ver 7.7)

    10
    0 Votes
    10 Posts
    2k Views
    David WZD

    @Ekopalypse Yes it is, I didn’t see it.

  • Find and Replace in multiple subdirectories

    5
    0 Votes
    5 Posts
    1k Views
    Alan KilbornA

    @FFatih-SH

    So then in the Find in Files tab of the Find window, you would locate a checkbox for “subfolders” and tick it. Then you would specify C:\Users\LG\Desktop\Folder1\ as the “directory”…

    When you get it all set up, you press the Replace in Files button…

  • UDL Folding problems in ADA

    11
    0 Votes
    11 Posts
    2k Views
    EkopalypseE

    @Jose-Manuel-Vela-García

    hmmm … maybe some browser issue but if you search for ada you should get it as the first found item. Anyways here the direct link to the ada demo plugin/template.

  • How to write and execute a replace script by menu/hotkey?

    5
    0 Votes
    5 Posts
    1k Views
    Alan KilbornA

    @Claudia-Svenson

    You can record a macro for the replacement operation. See the Macro menu – fairly self-explanatory. The macro snapshot happens when one of the buttons is pressed (e.g. Replace, Replace All, etc).

  • Help me please, how can I extract the mail and the next column?

    6
    0 Votes
    6 Posts
    671 Views
    oscar remicccO

    @guy038
    you are a great teacher, thank you very much

  • Forum profile: my email is taken?

    5
    1 Votes
    5 Posts
    1k Views
    Giulio.PortioliG

    Thanks Peter. I can only guess I created an account a long time ago using email address and password (although I have no recollection, including of any username), but obviously I cannot access it any more, now that login is only via FB/GitHub etc.

    I’m more than happy to keep my current account @Giulio.Portioli, anyway. It’s any old account that should be deleted. I’ll try the website contacts, if no-one pipes in.

    Cheers.

  • (autoCompletion)additionalWordChars doesnt work?

    3
    0 Votes
    3 Posts
    640 Views
    andrecool-68A

    @PeterJones I can make a shorter post)))

  • color according to syntax language

    3
    0 Votes
    3 Posts
    793 Views
    Jorge Rojas V.J

    Perfect.
    Updating program.
    Problem solved.
    Thank you.

  • Need Macro to recursively change CRLF (windows) to LF (Unix)

    8
    0 Votes
    8 Posts
    3k Views
    dinkumoilD

    @Maurizio-Moretti , @andrecool-68

    Another approach is to use my AutoEolFormat plugin, available via PluginManager (up to Notepad++ v7.5.9) and PluginsAdmin (Notepad++ v7.6 and higher).

    Install the plugin. Configure it to automatically set EOL format for XML files to Unix style (LF). Open all XML files to convert (EOL format will be converted automatically). Click on Save all.

    To save RAM maybe do not open all XML files at once, open maybe 40 or 50 (depends on the size of the files).

  • Printing and spellcheck

    2
    0 Votes
    2 Posts
    431 Views
    andrecool-68A

    @Václav-Vlček
    If you are sure that the word is spelled correctly, you can add it to the user’s dictionary or turn it off from the spell checker.

  • Adding text to beginning and end of files for whole directory.

    2
    0 Votes
    2 Posts
    3k Views
    Terry RT

    @Andy-Ly said:

    add text to the beginning of the txt files and the end of it for the whole directory in bulk

    Welcome to the community.
    It can be done simply with Notepad++. The regex (regular expression) I’ve provided should be copied into the appropriate fields within “Find in Files” function. This can be found under the main menu option “Search”.

    Find What:^(?s).+
    Replace With:line 1\r\n$0\r\nlast line
    Filters: make this *.txt and the Directory should be where your group of files to edit are located. As a suggestion either copy a few select files to another location and test first, or make sure you have a complete copy of ALL the files before editing. And after performing these steps you should verify a few random files to be sure it has worked as planned.

    Note line 1 should be changed in the regex to the characters you wish to insert on the first line. and last line should also be changed to what you intend inserting at the end.

    To give some background the (?s) means that the . character will capture ALL characters including line feed/carriage returns regardless of what the setting is on the “Find in Files” option . matches newline.
    The .+ then allows it to capture the entire file contents.
    In the Replace With field first the new insertion is provided, then a newline (\r\n), then we return the captured contents of the file `$0 and finally add a newline and the new last line to be inserted.

    You did not mention if the first and last lines were to be new lines, but my regex makes it so with the use of \r\n. If you do NOT wish this, remove the 2 instances of \r\n before preceding with the changes.

    Please note that the “search Mode” MUST be “regular expression”. After hitting the “Replace in Files” you may be presented with a question, this allows you to stop if you did NOT mean to apply the changes. If you continue all the files will be updated.

    Check your results on a sample group of files before proceeding with the entire lot.

    Let us know how it went, if there were any issues etc. We may be able to further fine tune the solution if required but would need more information.

    Terry