• Prevent code folding style to override keyword style

    7
    0 Votes
    7 Posts
    517 Views
    PeterJonesP

    I have explained the situation to the best of my ability, and shown you where to go to ask for this feature.

    Continuing to try to “convince” me is pointless. I have no authority to force someone else to make the changes; I do not have the set of knowledge to make and submit the changes myself (nor the time, even if I had the knowledge). If you have the knowledge and time, then submit the pull request yourself, and see if it gets accepted; if you don’t, then submit the feature request and wait to see if anyone else has the time and ability and approval to implement it. There’s nothing more I can do for you.

    Good luck.

  • Please help me

    4
    0 Votes
    4 Posts
    311 Views
    EkopalypseE

    @rafiq-khan

    Please post the debug-info from ? menu, the last menu item.
    How did you install nppftp?

  • Remove Duplicate Lines

    8
    0 Votes
    8 Posts
    806 Views
    Alan KilbornA

    @Prahlad-Makwana4145

    I would not advise people to use the TextFX plugin as it is old and support is questionable.

  • any alternative for npftp

    2
    0 Votes
    2 Posts
    188 Views
    EkopalypseE

    Please avoid opening multiple posts for the same topic.

  • Remember last session npp portable

    2
    0 Votes
    2 Posts
    228 Views
    EkopalypseE

    In order to be able to have the same session on different machine
    you need to find a way to read the same session.xml file from all
    machines. One obvious solution might be to have the config files stored
    on a network drive which is accessible from all machines or having a usb
    drive with the npp setup and using it on different machines.
    Of course, all machines do need to have access to your files in the same way.

  • adding word between any 3 lines

    7
    0 Votes
    7 Posts
    1k Views
    guy038G

    Hello, @Hasan123, @Alan-kilborn, @peterjones and All,

    Here is my very similar version :

    SEARCH (?-s)(?:^.+(?:(\R)|\Z)){1,3}

    [word]\1$0

    Group \1 contains the current EOL char(s) of the file

    Best Regards,

    guy038

  • Regex usage in notepad

    4
    0 Votes
    4 Posts
    603 Views
    guy038G

    Hi, @rovitie, @peterjones, @alan-kilborn and All,

    Just a variant, slightly shorter ;-))

    SEARCH ^.+?:([^:]+@.+?:).+:([[:xdigit:]]{32}):.*

    REPLACE $1$2

    Best Regards

    guy038

  • Basic Font editing

    2
    0 Votes
    2 Posts
    207 Views
    PeterJonesP
    The Preferences > Style Configurator is used for defining text formatting for the various syntax highlighter languages. documented at https://npp-user-manual.org/docs/preferences/#style-configurator the Language > User Defined Language > Define your language… allows you to set text formatting for the User Defined Lanauges (UDL), which are for syntax highlighting not covered by the builtin languages. documented at https://npp-user-manual.org/docs/user-defined-language-system/ if you are editing a markup file (like HTML), or a markdown file, or other “formatted text”, then Notepad++ doesn’t come out-of-the-box with a “change font size for the selected text” or “make this line a header”. However, for languages like HTML or Markdown, there are plugins that help automate the authoring of such files, and will add in the appropriate <b>...</b> or **...** wrappers at the touch of a button or shortcut keystroke. However, you’d have to give us more details so we know what markup/markdown language(s) you are editing. if you want some sort of “permanent” formatting that can go to a different machine and be looked at in a different text editor for non-HTML, non-markdown, truly plaintext file, you really need a word processor and some more powerful filetype than .txt (and it’s beyond the scope of this forum).
  • Regex: Replace tag with another tag from text

    6
    0 Votes
    6 Posts
    965 Views
    hasan123H

    thank you very much

    You are welcome

  • 0 Votes
    3 Posts
    280 Views
    MaxM

    Marvellous. Thank you!

  • Copy with line numbers

    6
    3 Votes
    6 Posts
    3k Views
    Michael VincentM

    @Michael-Vincent said in Copy with line numbers:

    OK - weird workaround

    Much better:

    ::copylinenums NPP_CONSOLE keep SET LOCAL CR ~ STRFROMHEX 0xd SET LOCAL LF ~ STRFROMHEX 0xa SCI_SENDMSG SCI_GETSELECTIONSTART SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT) SET LOCAL START = $(MSG_RESULT) SCI_SENDMSG SCI_GETSELECTIONEND SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT) SET LOCAL END = $(MSG_RESULT) SCI_SENDMSG SCI_GETCURRENTPOS SCI_SENDMSG SCI_GETCOLUMN $(MSG_RESULT) SET LOCAL COLUMNEND = $(MSG_RESULT) :LOOP IF $(START)==$(END) THEN IF $(COLUMNEND)==0 GOTO END ENDIF ENDIF SCI_SENDMSG SCI_GETLINE $(START) @"" SET LOCAL LINE ~ $(START) + 1 // ECHO $(LINE): $(MSG_LPARAM) SET LOCAL OUTTEXT = $(OUTTEXT)$(LINE): $(MSG_LPARAM)$(CR)$(LF) IF $(START)==$(END) GOTO END SET LOCAL START ~ $(START) + 1 GOTO LOOP :END CLIP_SETTEXT $(OUTTEXT)

    Cheers.

  • How to paste a selection in the same way as typing in overwrite mode?

    5
    0 Votes
    5 Posts
    854 Views
    Alan KilbornA

    @Alan-Kilborn said in How to paste a selection in the same way as typing in overwrite mode?:

    print(‘got here a’)

    Oops; delete that line! Just for debugging! :-)

  • Chrome doesnt read my code

    2
    0 Votes
    2 Posts
    442 Views
    PeterJonesP

    @Nikola-Novakovic ,

    You have technically asked a “cookie baking” question. Just because “i wrote it in notepad++” doesn’t mean that your problem has anything to do with the editor. In this case, you have described the burnt crust of your cookies well enough that I can diagnose your oven temperature was too high: specifically, your file does not end in “.html”, so chrome is treating it as raw text, rather than as HTML source code.

    My guess is that you thought you named your file my.html, but that it actually got named my.html.txt, because the Windows-standard dialog box that you were using auto-added .txt instead of the .html that you thought.

    The problem boils(*) down to Windows settings and possibly a checkbox in the Notepad++ settings. (*: “now we’re boiling cookies? Peter, you’re confusing.” Blame it on the Bard, who took arms against a sea of troubles; mixed metaphors are fun)

    In Windows, you need to tell Explorer to always show file extensions. Windows Explorer > View > Options > Change Folder and Search Settings > View and uncheck Hide extensions for known file types. (That’s Windows 10. Other Windows may phrase it differently, but the essence is still the same.) With that checkbox enabled, Windows thinks it knows better than you, and that somehow hiding extensions is a good thing (with the justification that they show an icon, so you’ll know what file type it is even though you can’t see the extension). This doesn’t just affect Windows Explorer: it also affect the common Windows file-open and file-save dialog boxes. But this setting probably made it less obvious to you that your file didn’t have the .html extension, even if you thought it did.

    In Notepad++, Settings > Preferences > Default Directory has a checkbox ☑ Use new style dialog (without file extension feature & Unix style path capacity). If that checkbox is disabled, check the box! With it checked, Notepad++ uses the new-style variant of the standard Windows dialog box that doesn’t automatically apply an extension for you. With it unchecked, Notepad++ uses the old-style variant of the standard Windows dialog box that does automatically apply an extension for you… but not necessarily the one you think or want. (If you happen to be using the old-style, and try to select, say, “C source code”, it might pick .h rather than .c, because that happens to be first in the list of c-source-code extensions it was given at some point; that’s pure insanity!)

    note that I keep emphasizing that it’s a windows-standard dialog box. It’s not Notepad++'s fault, or anything that Notepad++ can change. Notepad++ gives you the option to use the old-style, but the bugs quirks of the old-style aren’t Notepad++'s fault. Both versions of the dialog box are Microsoft code which Notepad++ cannot change. Notepad++ gave that option because 5-7 years ago, when the “new style” dialog was introduced, some users would have complained “hey, you changed my dialog box; change is evil”, so Don gave NPP users the choice to continue using the old-and-evil or to update into the modern era with the new Windows standard dialog box.

    Combine these two issues, and the Windows-standard dialog will auto-apply .txt to the name of the file, without you seeing it, because the dialog happened to default to “plain text” rather than “html”, and Windows thought it would be a fun idea to hide part of the filename from you. Cool, huh?

    Save yourself those problems. Have Windows always show extensions, and have Notepad++ use the new-style Windows dialog box.

  • NPPAutoIndent Bug

    1
    0 Votes
    1 Posts
    203 Views
    No one has replied
  • How to extract certain columns from a big Notepad text file?

    4
    0 Votes
    4 Posts
    899 Views
    Alan KilbornA

    A nod to @Terry-R for the use of \h rather than my use of \s to match horizontal whitespace, although the \s actually should work here.

  • comment line open with a character and space

    8
    0 Votes
    8 Posts
    1k Views
    PeterJonesP

    @jason1820 said in comment line open with a character and space:

    Nothing works exactly like I wanted.

    That was actually the point of the experiments I showed; AFAICT, you cannot trick the UDL engine into requiring a space after the comment start sequence.

    did not take effect

    Editing NPP config files inside NPP takes a bit of finesse. The best sequence is close all Notepad++ windows, then open one, do the edits, save and exit, then reload for it to take effect. (Not that “adapt[ing] a predefined language for my own” will work; but even a valid change requires that sequence)

  • adding auto space after typing

    9
  • Matching brace doesn't work in batch

    3
    0 Votes
    3 Posts
    307 Views
    dshuman52D

    I believe the following demonstrates a quirk in the operation of the matching function for a paren.

    https://community.notepad-plus-plus.org/post/49621

    I have found no issues yet if the ^continuation character is NOT used.

  • Easy Way to copy visible lines only, number them

    2
    0 Votes
    2 Posts
    568 Views
    Alan KilbornA

    @Anon-A

    Basically you need to see here. And you need to show examples of what you are starting with and what you want to achieve for the different cases you are talking about. Nobody is going to read your mind in order to provide help in answering your questions.

    …between <dict> and </dict> in this case or sth else

    If your use of sth here is meant to be the word something then I think we can see that you want to put zero effort into asking your questions, so don’t be surprised if nobody wants to put more-than-zero effort in to answer. Don’t treat this site like you are texting.
    If this is off-base, then apologies…

  • shortcuts.xml file

    8
    0 Votes
    8 Posts
    844 Views
    Peter BrandP

    @dinkumoil said in shortcuts.xml file:

    NppUISpy

    Very useful plugin, used it to see what the Set Language command was. Thanks