• [c#] Adding a custom styler or lexer in C# for scintilla/notepad++

    70
    0 Votes
    70 Posts
    12k Views
    Bas de ReuverB

    @Ekopalypse thanks for the answer. 🤔 Adding listeners for the BufferActivated event and manually setting the style each time the user switches to a different tab adds a lot of code and possibilities for bugs, for something that the user typically only does once…

    Honestly I think I’ll undo the new code and go back to just asking the user to restart Notepad++ after they change the default color set.

  • Can I trigger a python script from mouse movements/hover/mouseover/etc..

    14
    1 Votes
    14 Posts
    1k Views
    Alan KilbornA

    @Rufus-Smith said in Can I trigger a python script from mouse movements/hover/mouseover/etc..:

    I learned today how to modify the contextMenu.xml to be able to add a python script as a menu option in the right-click context menu, which is a further alternative to hover-tip-click

    Sure, but the context menu will appear whenever your right click, on all text and in all files. Confining actions to call-tips in specific file types and requiring a click on the call-tip to invoke certain actions keeps things very localized, and it is easy to set up and handle. But, of course, the choice is yours! :-)

    BTW, running scripts from the normal right-click context menu also allows them (to a degree) to use modifiers to change behavior. It has some of the limitations mentioned previously, but I do it. You can also put a modifier hint into the context menu text to remind you, example: Run script (+Shift=Do all) – you get the idea…

  • A plugin to toggle displaying password as dots?

    6
    0 Votes
    6 Posts
    2k Views
    Yuriy KonstantinovY

    @Alan-Kilborn no I mean only my own credentials in a text file located on my computer:

    Some of my credentials are kept as text in a file.

  • Help with Compare plugin

    2
    0 Votes
    2 Posts
    274 Views
    pnedevP

    Hi,

    It is currently not possible.

    BR

  • DuckyScript 3.0 Style Configuration Request

    3
    0 Votes
    3 Posts
    2k Views
    Michael VincentM

    @Michelle-Flores said in DuckyScript 3.0 Style Configuration Request:

    Would it be possible to add DuckyScript 3.0 as a style configuration? That would be awesome!

    As @PeterJones says, you’ll need to use / define a User Defined Language (UDL). A quick Google turns up this:

    https://github.com/abhinavvv03/Rubber-Duckey/blob/master/Downloads.rdoc

    I cannot confirm the veracity of the UDL download mentioned on that site - my IT blocks it. Proceed with caution.

    Cheers.

  • 0 Votes
    4 Posts
    285 Views
    PeterJonesP

    @Manpreet-Singh ,

    One more freebie: check if you have a newline at the end.

    Note that my example screenshot above shows the file has 10 lines, the last being blank.

    If you have a file that doesn’t have a newline after the closing } – so only 9 lines instead – it won’t syntax highlight.

    d3b6a0d3-0308-4e9d-945d-f10677c52a88-image.png

    The highlighter requires at least one newline or other whitespace character after the final }.

  • function list for java now working in new version

    Locked
    2
    0 Votes
    2 Posts
    193 Views
    PeterJonesP

    @Manpreet-Singh ,

    Discussion will continue in another version of your topic

  • NppExec v0.8.3 has been released!

    1
    4 Votes
    1 Posts
    940 Views
    No one has replied
  • DSpell Check not working (again). (Sigh.)

    3
    0 Votes
    3 Posts
    2k Views
    Shiraz MistryS

    @PeterJones Thank you for the steps. They worked so well.

  • Question about the Dark Mode's dark scrollbars and toolbars

    7
    1 Votes
    7 Posts
    925 Views
  • TagsView is back! :)

    26
    5 Votes
    26 Posts
    3k Views
    xomxX

    @pnedev

    On Notepad++ start I get a message “Access violation”.

    N++ versions 8.4.3+ have serious problem with WINE.

  • Seeking for help

    40
    5 Votes
    40 Posts
    4k Views
    Derek BrownD

    @Ekopalypse I’m making gradual progress, working on it off and on between other distractions. I’m very happy with what I have so far. If I can find enough time to finish it I think it will be very good.

  • EnhanceAnyLexer plugin

    2
    2 Votes
    2 Posts
    666 Views
    EkopalypseE

    Some information about the new functions.

    The regex error feature needs a decent npp version.
    Afaik 8.2.1 is needed to have the end of line annotation feature.

    The real time match update temporarily deletes already styled matches to see what really matches, I hope this makes sense.

    Two new ini keys are needed.

    ; The ID of the style used to display regex errors. ; If there are conflicts with other styles used by Npp or other plugins, change this value. ; The expected range is between 0 and 255; according to Scinitilla. regex_error_style_id=30 ; The color used by the style. ; For an explanation of how this color can be defined, see the following description of the regexes and their colors. regex_error_color=0x756ce0
  • SetFirstVisibleLine not working?

    8
    0 Votes
    8 Posts
    445 Views
    peter-wallP

    Ah, good to know it’s not just me!

    I’ve also tried using the SCI_SETFIRSTVISIBLELINE but that doesn’t work for me either.

    I have seen this working and I have updated Notepad++ recently - I’m on v8.4.4.

    Perhaps I’ll reinstall an earlier version and see whether that behaves any better.

    Cheers, Peter.

    @pnedev

  • Regex tests of the build 618 of the 'ComparePlus' plugin

    12
    5 Votes
    12 Posts
    1k Views
    pnedevP

    @guy038 ,

    Thanks again for the feedback and for the help with the regex functionality.

    BR

  • Feature request spell checker

    2
    0 Votes
    2 Posts
    185 Views
    EkopalypseE

    @Werner-Warweg

    the spell checker comes from a plugin, i.e. is developed independently. You need to contact the author of this plugin. The information who this is can usually be obtained from the about dialog of the plugin.

  • GedcomLexer 0.5.0 now available

    1
    3 Votes
    1 Posts
    362 Views
    No one has replied
  • Can you add java .class file decompiler plugin?

    3
    0 Votes
    3 Posts
    3k Views
    R

    if such a creature exists for a java .class

    Several, in fact: https://www.libhunt.com/l/java/topic/decompiler

    I cannot see how having a plugin do it would make the process any easier

    Maybe a script instead?

    # -*- coding: utf-8 -*- from __future__ import print_function # for py 2.7 import sys import subprocess import tempfile from os import path from Npp import notepad """ Shells out to the Procyon decompiler and opens the generated source in Notepad++ https://github.com/mstrobel/procyon/wiki/Java-Decompiler ASSUMPTIONS ----------- 1. a JAVA_HOME environment variable is set, or the path to java.exe is on the PATH 2. procyon.jar is on the class path; otherwise provide the absolute path, e.g., r'C:\java\tools\procyon\0.5.36\procyon.jar' """ def show_decompiled(): try: binary = notepad.prompt('File path to the compiled class/jar:', 'Java Decompiler Script', 'Hello.class') if binary is None: # assume current file is a Java source file that's been compiled *in situ* binary = path.splitext(notepad.getCurrentFilename())[0] + '.class' elif not path.exists(binary): raise IOError('Can''t find class/jar "%s"!' % binary) CMD = [ 'java', '-jar', 'procyon.jar', '-dl', # debug line numbers binary ] if subprocess.check_call(CMD, shell=True) == 0: decompiled = subprocess.check_output(CMD, shell=True).decode('utf-8') _, java_src = tempfile.mkstemp(suffix='.java', text=True) if java_src: with open(java_src, 'w') as file: file.write(decompiled) notepad.open(java_src) except (subprocess.CalledProcessError, IOError) as exc: notepad.messageBox(str(exc), 'Java Decompiler Script') print(exc, file=sys.stderr) if __name__ == '__main__': show_decompiled()

    jdecomp-py-select
    jdecomp-py-enter
    jdecomp-py-profit

  • 0 Votes
    13 Posts
    8k Views
    PeterJonesP

    @rdipardo ,

    It’s actually a new form of spam that I noticed in a few other posts – by that same user, and a couple others. The posts have been removed, and the posters flagged. (I hadn’t noticed at the time that it was the same user or that links had been edited)

  • not work proper suggest box

    2
    0 Votes
    2 Posts
    222 Views
    Terry RT

    @Rakesh-Verma said in not work proper suggest box:

    after enter not coming full word.
    I think this is big issue…kindly cosider

    Possibly you should consider reading the online manual here. Then look at your settings.

    Terry