• icon (disk) on non active tab

    3
    0 Votes
    3 Posts
    626 Views
    Alan KilbornA

    So, here’s a procedure for “hacking” Notepad++ in order to get better-looking and easier-to-differentiate tab bar icons.

    First, get what is needed, and put everything together in a temporary folder somewhere:

    Obtain “Resource Hacker” from http://angusj.com/resourcehacker/
    I chose the ZIP install, but whatever your pleasure.
    Really what you need in this step is ResourceHacker.exe

    Get some replacement icons, by downloading:
    http://www.famfamfam.com/lab/icons/silk/famfamfam_silk_icons_v013.zip
    Extract these files only: accept.png, lock.png, pencil.png

    Use an online conversion tool to convert all 3 of the .png files to .ico files
    One that I found simple to use was: https://icoconvert.com/
    Name the resulting .ico files this way: accept.ico, lock.ico, pencil.ico

    Also add to this collection of files a copy of your usual notepad++.exe file.

    Next, and also in the same folder, create hack_npp_icons.txt with the following content:

    [FILENAMES] Open=notepad++.exe Save=notepad++_hacked_icons.exe Log=con [COMMANDS] -modify accept.ico,ICONGROUP,501,1033 -modify pencil.ico,ICONGROUP,502,1033 -modify lock.ico,ICONGROUP,503,1033

    Now, obtain a CMD.exe window in your temporary folder (not going to do a lot of hand-holding here) and run the following command:

    ResourceHacker.exe -script hack_npp_icons.txt

    If all goes well, you should end up with no error messages and a new file called notepad++_hacked_icons.exe in your folder.

    Copy the hacked exe back to the folder you copied your original notepad++.exe from.

    Now test-run the hacked exe (after closing any running instance of N++ of course).

    It should start and any tabs on the tab bar should now have the alternative icons:

    A “pencil” icon for modified but unsaved files:
    5c301d8a-99b2-440e-84ad-b9d76b406775-image.png

    A “green checkbutton” icon for saved files:
    4833d989-8372-4dde-b990-7d042906abda-image.png

    A “lock” icon for readonly files:
    265eebb0-4f30-4853-8520-fea87322d22d-image.png

  • Python Plugin Development

    6
    1 Votes
    6 Posts
    911 Views
  • Be ready for upcoming NppExec v0.6 RC4!

    2
    5 Votes
    2 Posts
    203 Views
    Michael VincentM

    @Vitaliy-Dovgan

    That is great news! Not that I think anything is missing in NppExec, but happy to see it is still actively supported. Thanks for a plugin I use everytime Notepad++ is open.

    Cheers.

  • Editor right-click, outside current text selection, lose this selection

    35
    0 Votes
    35 Posts
    9k Views
    frying-panF

    @Alan-Kilborn

    ok i see
    [https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8564](link url)
    ‘Keep selection when right-click outside of selection’ has been added, or will be added to the next NPP version (as an option).

    So I will remove this specific feature from my
    NotepadPP-PythonScript-Mouse_Select_Gesture script
    once I have updated my NPP and tested the native option.

  • The problem with removing plugins in notepad ++ version 7.8.9.

    3
    0 Votes
    3 Posts
    2k Views
    Егор МалашевскийЕ

    @PeterJones I ran the program as administrator, and plugins were not removed from me. I selected the necessary plugins, clicked “delete”, confirmed the deletion, and after restarting the program started again with the same plugins))) And I started Notepad ++ as an administrator. I could solve the problem myself: I just went into the folder, went into the folder with plugins, selected all the folders (except for the config folder, because the text editor would be unstable without it), moved it to the trash, then cleared it, launched Notepad ++ again and no plugins never saw again.

  • Want the ability to delete some context menu items from Doc Switch panel

    5
    0 Votes
    5 Posts
    412 Views
    BoonHongEB

    @Alan-Kilborn said in Want the ability to delete some context menu items from Doc Switch panel:

    Snap3.jpg

    Originally, I was going to develop a plug-in that would disable or change context menus, but after two days of holding onto it because of my poor knowledge of MFC coding, I decided to modify the source code of notepad++ and build it in Visual Studio Community edition. So I searched the source code files and found out which parts to modify. As you can see from the screenshot, I had to modify two files.

    I finally succeeded in building the error code by using Google search power to search for the error code and correct the problem after half a day without being able to build it due to minor warnings and errors in the source code. The built ‘notepad++.exe’ file was overwritten in a folder that was already installed, and most of the menu items were removed as I wanted, such as a screenshot.

    Before that, it was common to be embarrassed because it was difficult to predict which direction the tall context menu panel would be displayed vertically, or to accidentally press the “close all” item. I’m so happy that it didn’t happen anymore.

    I turned off ‘automatic updates’, but even if I update them later, I’ll have to get the source code for the new version, modify it like this, and build it. If a competent developer develop and release the Doc Switcher as a single plug-in or, like I did, an advanced plug-in that has eliminated most of the context menu items, this inconvenience will be eliminated. But In my Google search, I found a lot of similar requests for improvement on DocSwitcher over the last five years. Judging from the fact that they haven’t been reflected at all so far, I don’t think I can expect much from now on. Thank you both for your answers.

  • cant install zencode plugin in notepad++

    3
    0 Votes
    3 Posts
    245 Views
    andrecool-68A

    “zencode” is an outdated plugin, I suggest installing the newer “Emmet” plugin from the same author!
    https://github.com/emmetio/
    https://emmet.io/

  • Combiner Plugin 64bit

    2
    0 Votes
    2 Posts
    602 Views
    chcgC

    See https://www.scout-soft.com/combine/, you might request a 64 bit version from the author at info@Scout-Soft.com.

  • Looking for a freelancer to develop a plugin: Misspelled Word Counter

    41
    0 Votes
    41 Posts
    4k Views
    Miguel LescanoM

    @Ekopalypse Thanks! I’ll check it out.

  • How detect codepage/encoding of current document?

    4
    0 Votes
    4 Posts
    957 Views
    EkopalypseE

    @WinterSilence

    I guess so, did a quick test with PythonScript plugin and it seems to do
    what it states it will do.

    4d4b7af0-b13c-472f-b3d7-a13c60c52c2c-image.png

    Do you suspect that this is not so?

  • asp classic or asp.net vb or vba or vb6

    1
    0 Votes
    1 Posts
    38 Views
    No one has replied
  • c# plugin, how to color highlight parts of text on each line?

    3
    0 Votes
    3 Posts
    4k Views
    EkopalypseE

    @Bas-de-Reuver

    You either use styles or indicators.
    An example of how you can do this is shown here.

  • Calling .js script using c# for a Plugin

    3
    0 Votes
    3 Posts
    250 Views
    NanyaRurirosN

    @PeterJones said in Calling .js script using c# for a Plugin:

    embed JS in C#

    Thank you!
    I will give it a look :)

  • Access NPP command-line from plugin

    4
    1 Votes
    4 Posts
    389 Views
    EkopalypseE

    @moon6969

    yes I see, I guess some kind of notification, as you wrote, is needed here.
    The wording NPPN_PARAMETERS_CHANGED might be a bit misleading
    as the mono-instance is still reporting its parameters correctly.
    Maybe NPPN_DIFFERENT_INSTANCE_MERGED?
    Native speakers - what do you suggest? :-)

  • Notepad++ Plugin development

    8
    0 Votes
    8 Posts
    656 Views
    EkopalypseE

    @Guenther-Sohler

    thit sounds like that you did not select an SDK when you installed Visual Studio, could that be?

  • quale plugin è stato usato per trovare errore nel file database no ok?

    7
    0 Votes
    7 Posts
    621 Views
    massimo la terraM

    @Ekopalypse ok certamente

  • Notification on update document without saving

    10
    0 Votes
    10 Posts
    666 Views
    WinterSilenceW

    @Alan-Kilborn The question is, do I correctly catch notifications or is there a better solution?

  • The link for Open User Defined language Folder... does not work

    6
    1 Votes
    6 Posts
    1k Views
  • External lexer example

    3
    4 Votes
    3 Posts
    926 Views
    moon6969M

    The only major hurdle was the exports - all it needed was an exports.def file once you nudged me in the right direction.

    I’ve noted this on the Github readme, and there are comments in the code for the bits I found tricky.

  • Intricacies of Regex Replace via Python Script

    14
    1 Votes
    14 Posts
    2k Views
    Alan KilbornA

    @M-Andre-Z-Eckenrode said in Intricacies of Regex Replace via Python Script:

    Because 99.9% of the text I’m dealing with is adequately expressed in ANSI, and Unicode files are larger than ANSI. Granted, they’re just text files and not particularly large ones either way, but I’m a conservationist at heart and am compelled to avoid wasting space. :-)

    I don’t think that is a compelling reason at all.
    But, democracy rules, so do what you like. :-)
    But, as this thread sort of shows, a complete understanding of encoding is an important thing.
    For myself, I’m not 100% of the way there, but hopefully getting better all the time