• Tab Bar Text in Multi-line Mode Does Not Fill the Space Allocated

    4
    0 Votes
    4 Posts
    366 Views
    Lloyd WallsL

    @Alan-Kilborn Thanks for the suggestion. I’ll add a screen shot in a bit.

  • How to add left and right margins feature in open text file?

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    @Ado-Netok said in How to add left and right margins feature in open text file?:

    I may look for another text editor.

    There are good reasons to switch text editors.
    How could this possibly be one of them?
    Plus, I don’t know that most are this type of “margin friendly”.
    This is more of a word-processing function.
    Are you sure you don’t want a word-processor instead of a text editor?

  • User-defined language with function list

    7
    0 Votes
    7 Posts
    857 Views
    Alan KilbornA

    @PeterJones

    Cool. I wonder if Bob and Alice are going to become regular contributors here? :-)

  • Lines containing the Unicode Word-Joiner U+2060 display oddly

    4
    0 Votes
    4 Posts
    389 Views
    PeterJonesP

    @Alan-Kilborn said in Lines containing the Unicode Word-Joiner U+2060 display oddly:

    @PeterJones

    If you’re going to experiment like that, probably should do it with DirectWrite both on and off. So many choices. :-)

    Good idea. DejaVu Sans Mono looks good when DirectWrite is turned on.
    16c00938-e6c4-46d1-8dff-3fd67e51273d-image.png

    So, the options are enabling DirectWrite, changing font, or both. :-)

  • Adding more vertical edge columns than presently available.

    3
    0 Votes
    3 Posts
    226 Views
    Michael WursterM

    @Michael-Wurster Thank you for the quick reply. I’m not a developer so the solutions you provided will not be a quick fix for me but I’m not afraid to wade in “dark” waters so I’ll add one of the suggested plugins to the tool box and see what happens. Ideally, I’ll be able to figure out how to add text for column headers as well and from that point on I can have a “template” to call up when I need to edit/create one of these files for test purposes.
    Thanks again.

  • Function list does not Work With VBS-files / VB-Files.

    7
    0 Votes
    7 Posts
    2k Views
    guy038G

    Hello, @robin-melin, @peterjones and All,

    Okay, I understood the problem ! In two locations of, both, the @robin-melin’s vb.xml file and the @MAPJe71’s vb-3.0.FL.xml file, we have an ending regex part (?=[\t ]*\()

    The correct regex should be (?=[\t ]*\(|$) !!

    So, here is, first, the corrected contents of the @MAPJe71’s vb-3.0.FL.xml file, where I used a 4 spaces indentation :

    <?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <functionList> <!-- =================================================== [vb_function] --> <parser id="vb_function" displayName="Visual Basic (.NET|Script|for Applications)" commentExpr="(?m:((?&lt;=&apos;).*?$)|((?i:REM)([\t ].*?)?$))"> <classRange mainExpr="(?s:(?&lt;SCOPE&gt;(?i:CLASS|TYPE)).*?(?i:END[\t ]\k&lt;SCOPE&gt;))" displayMode="node" > <className> <nameExpr expr="(?i:CLASS|TYPE)[\t ]+(?:[A-Za-z_][\w]*\b)(?:.*?[\r\n])" /> <nameExpr expr="[\t ]+(?:[A-Za-z_][\w]*\b)" /> <nameExpr expr="[A-Za-z_][\w]*" /> </className> <function mainExpr="(?m:^[\t ]*(?i:(?:(?:PRIVATE|PROTECTED|PUBLIC)[\t ]+)?(?:STATIC[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$))" > <functionName> <funcNameExpr expr="(?i:(?:(?:PRIVATE|PROTECTED|PUBLIC)[\t ]+)?(?:STATIC[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <funcNameExpr expr="(?i:(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <funcNameExpr expr="[A-Za-z_][\w]*(?=[\t ]*\(|$)"/> </functionName> </function> </classRange> <function mainExpr="^[\t ]*(?i:(?:(?:PRIVATE|PROTECTED|PUBLIC)[\t ]+)?(?:STATIC[\t ]+)?(?:SUB|FUNCTION|PROPERTY))[\t ].*?[A-Za-z_][\w]*(?:[\t ]*\(|$)" displayMode="$functionName"> <functionName> <nameExpr expr="(?i:(?:(?:PRIVATE|PROTECTED|PUBLIC)[\t ]+)?(?:STATIC[\t ]+)?(?:SUB|FUNCTION|PROPERTY))[\t ].*?[A-Za-z_][\w]*(?:[\t ]*\(|$)"/> <nameExpr expr="(?i:(?:SUB|FUNCTION|PROPERTY))[\t ].*?[A-Za-z_][\w]*(?:[\t ]*\(|$)"/> <nameExpr expr="[A-Za-z_][\w]*(?=[\t ]*\(|$)"/> </functionName> </function> </parser> </functionList> </NotepadPlus>

    And secondly, here is the corrected contents of the @robin-melin’s vb.xml file, where I used a 1 tabulation indentation :

    <?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <functionList> <!-- ========================================================= [ VB ] --> <parser id ="vb_function" displayName="Visual Basic (.NET|Script|for Applications)" commentExpr="(?m:((?&lt;=&apos;).*?$)|((?i:REM)([\t ].*?)?$))"> <classRange mainExpr="(?s:(?&lt;SCOPE&gt;(?i:CLASS|TYPE)).*?(?i:END[\t ]\k&lt;SCOPE&gt;))" displayMode="node" > <className> <nameExpr expr="(?i:CLASS|TYPE)[\t ]+(?:[A-Za-z_][\w]*\b)(?:.*?[\r\n])" /> <nameExpr expr="[\t ]+(?:[A-Za-z_][\w]*\b)" /> <nameExpr expr="[A-Za-z_][\w]*" /> </className> <function mainExpr="(?m:^[\t ]*(?i:(?:(?:PUBLIC|PRIVATE|PROTECTED|FRIEND|PROTECTED FRIEND)[\t ]+)?(?:(?:STATIC|SHARED|SHADOWS|OVERRIDABLE|OVERRIDES|READONLY|WRITEONLY)[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$))" > <functionName> <funcNameExpr expr="(?i:(?:(?:PUBLIC|PRIVATE|PROTECTED|FRIEND|PROTECTED FRIEND)[\t ]+)?(?:STATIC[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <funcNameExpr expr="(?i:(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <funcNameExpr expr="(?i:(?:GET|LET|SET)[\t ]+)?[A-Za-z_][\w]*(?=[\t ]*\(|$)"/> </functionName> </function> </classRange> <function mainExpr="^[\t ]*(?i:(?:(?:PUBLIC|PRIVATE|PROTECTED|FRIEND|PROTECTED FRIEND)[\t ]+)?(?:(?:STATIC|(?:DECLARE(?:[\t ]+(?:ANSI|UNICODE|AUTO))?))[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)" displayMode="$functionName"> <functionName> <nameExpr expr="(?i:(?:(?:PUBLIC|PRIVATE|PROTECTED|FRIEND|PROTECTED FRIEND)[\t ]+)?(?:(?:STATIC|(?:DECLARE(?:[\t ]+(?:ANSI|UNICODE|AUTO))?))[\t ]+)?(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <nameExpr expr="(?i:(?:SUB|FUNCTION|PROPERTY)).*?(?:\(|$)"/> <nameExpr expr="(?i:(?:GET|LET|SET)[\t ]+)?[A-Za-z_][\w]*(?i:[\t ]+(LIB|ALIAS)[\t ]+[\w&quot;\.]+)*(?=[\t ]*\(|$)"/> </functionName> </function> </parser> </functionList> </NotepadPlus>

    Robin, I tested your two examples as well as the Peter’s one and everthing is OK, whatever the vb parsing rules file used !

    Best Regards,

    guy038

  • File Association - White Leaf Instead Icons

    5
    0 Votes
    5 Posts
    329 Views
    mere-humanM

    @User-Soft I’m not sure but maybe you need to install the Notepad++ locally instead of using a portable version.
    Maybe then the icons would be displayed differently.
    Like this:
    1f0dec95-3efc-4460-bcb4-bb090bfcdc7b-image.png
    I’ve done it with local installation of Notepad++.

  • Changing context menu text in a language.xml

    15
    0 Votes
    15 Posts
    1k Views
    Peter GreistorferP

    @PeterJones I see - and understand, thank you!

  • 2 Votes
    25 Posts
    4k Views
    Terry RT

    @Alan-Kilborn said in Use of "Wrap Around" changing start position of search if "Replace All" button pressed:

    Is THIS your ver 0.3 proposal? :-)

    Hell NO! Without the smiley face I was thinking you’re serious. Hopefully you don’t think of me capable of doing THAT! That’s way too many options on 1 window. Interfaces need to be kept simple and unconfusing.
    My version 0.3 is this:

    768fc25b-fc69-417e-a095-91af57ec71ad-image.png

    where I looked at combining both “Replace All…” buttons like a jigsaw. So it would be purely a visual change. All 3 of these concepts were just intended to reduce confusion as we have talked about. Not that I’m confused anymore, I know exactly what “Replace All” and “Wrap around” selected do now.

    However with a seemingly lackluster response to my ideas I don’t know that I’ll bother presenting it on github. I presume to catch the eyes of the developers that’s the next step. I haven’t even got a github account.

    Terry

  • Automatically apply style token when highlighting text?

    8
    1 Votes
    8 Posts
    2k Views
    Alan KilbornA

    Another method is to copy only the lines pertaining to the macro out of your shortcuts.xml and have your users put those same lines in theirs. I neglected to mention this, because, for unsophisticated users, this is probably the MOST complicated and error-prone approach.

  • Multi lines cursor manipulations

    5
    0 Votes
    5 Posts
    2k Views
    Alan KilbornA

    @Mik-Tilk said in Multi lines cursor manipulations:

    Why they exist separated?

    Because you might want to do this for some reason:

    cbaeaccf-c12e-4872-89aa-39064aa3d466-image.png

    In other words, make 4 selections (in the example) that are NOT in related columns.

  • SCC API Plugin?

    4
    0 Votes
    4 Posts
    289 Views
    Michael VincentM

    @Dan-Cooperstock said in SCC API Plugin?:

    none of which we use

    Which one do you use?

  • Find the maximum line length in a file

    6
    4 Votes
    6 Posts
    4k Views
    Alan KilbornA

    @Nick-Brown said in Find the maximum line length in a file:

    nice additions in the helper functions forEachLine

    When I first started using PS, I noticed some weirdness with forEachLine that of course I can’t remember these many years later, but since then I’ve steered clear of it. Perhaps I was doing something wrong with it, or maybe there truly was something wrong with it that has since been fixed.

  • Scam website that pretend be able to download Notepad++

    2
    0 Votes
    2 Posts
    656 Views
    PeterJonesP

    @Rin5743 ,

    Thank you for letting us know. To make sure that @donho is informed, you might want to post the same thing as an issue at https://github.com/notepad-plus-plus/notepad-plus-plus/issues

    As always, we recommend only downloading Notepad++ from the official source – either notepad-plus-plus.org/downloads or the github repo at github.com/notepad-plus-plus/notepad-plus-plus .

  • Unwanted Font Size Change

    2
    0 Votes
    2 Posts
    262 Views
    guy038G

    Hello, @freon-sandoz and All,

    If you want to disable the mouse zoom OR the keyboard zoom OR both features, in Notepad++, just use the ZoomDisabler plugin :

    https://github.com/StanDog/npp-zoomdisabler

    Best Regards

    guy038

  • How do I make an "user-defined language"?

    3
    0 Votes
    3 Posts
    2k Views
    Quality Books100Q

    Ok, thanks.
    This helped me.

  • 1 Votes
    4 Posts
    778 Views
    Alan KilbornA

    So I ended up scripting a little mock up demo of this, which I won’t post unless there’s interest, but really there’s only a couple of new things that need to happen after a search match to make this work:

    find the number of lines shown on screen

    set the first visible line to a correct value (based upon the starting line of a find match, and the number of lines shown on screen, and of course the desired effect specified by the OP)

    hmm, maybe it gets a tad more complicated if text between the match and the top of screen has folded/hidden lines…

    However, looking at how N++ moves the display/selection when a match is found, there seems to be a lot going on with the logic, so I’m not sure how well any changes would fit in.

  • How to delete all, except predefined values

    5
    0 Votes
    5 Posts
    244 Views
    Bas CurtizB

    @guy038 said in How to delete all, except predefined values:

    \u\1(?2\2:\x20)\x20M\L\3

    @Ekopalypse @guy038
    Thank you guys for thinking along with me!

    @guy038 Does EXACTLY what I want - thanks again.

  • Huge lines

    8
    0 Votes
    8 Posts
    626 Views
    Antti AlhoA

    I had this exact same thing happening.

    Not a day old Windows 10 installation.
    I noticed that my disk management started to behave rather strangely and after which I noticed HUGE line margins on np++

    f1593f0a-5956-46b6-af64-6c88464e99ef-image.png

    I do have a small 200kb video of how my disk management is behaving. But I cant embed it here. Says not enough privileges. It seems that disk management is using same windowing system so maybe these things are related?

  • How to remove part of a phrase multiple times

    5
    0 Votes
    5 Posts
    249 Views
    PeterJonesP

    @Anandkumar-Prajapati ,

    I am curious what you were trying to accomplish with your post. It was nearly identical content to Guy’s post. The places where you varied from Guy’s were either inconsequential, or nearly so for the original data shown.

    If you have a unique point you were trying to make with your slight differences, I don’t know what that point was – so if it really is trying to make a point, please explain yourself more. It might be educational for the original poster or future readers to know why you made the choices you did – but only if you explain why.

    Otherwise, I want to point out that rephrasing advice that has already been given looks a lot like trying to take credit for someone else’s work – which is highly frowned upon (to say the least). I try to give the benefit of the doubt in such circumstances, so I am not saying that it was intentional; but it is a good idea to read the whole thread before posting, and to try to avoid giving the same advice without adding anything new, in an effort to avoid such appearances.