• UNICODE restitution

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Lonnie HaileyL

    A similar thing happened to me but in my case I would get a bunch of “NUL” characters whenever I copied and pasted. Here is the fix for my problem:

    Select Replace (Ctrl/H)
    Find what: \x00
    Replace with:
    Click on radio button Regular expression
    Click on Replace All

    I hope this helps!

  • wrong formatting issue - saving css file as asp.

    Locked
    1
    0 Votes
    1 Posts
    489 Views
    No one has replied
  • Send to COM PORT

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Marko-Cvetko

    in general yes but I assume you ask if this is a builtin feature, if so, no there isn’t
    such a function.
    What you normally do in such cases is to use the run menu with an external tool that can be
    executed as program directly or via cmd shell and providing the file as a parameter, like

    python "$(FULL_CURRENT_PATH)"

    or

    cmd /K python "$(FULL_CURRENT_PATH)"

    npp replaces automatically $(FULL_CURRENT_PATH) with the full path of the
    currently opened (and saved) document.

    In your case it COULD be that this way still works but it either needs to be wrapped
    in a bat file, when using run menu or copy and paste when using NppExec plugin

    mode COM8 BAUD=115200 PARITY=... DATA=... copy $(FULL_CURRENT_PATH) \\.\COM8

    Note, when using a batch file you cannot use $(FULL_CURRENT_PATH) inside the batch
    but something like $1 as far as I remember.

    Cheers
    Claudia

  • Sort troubleshoting

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Scott SumnerS

    @Gianluca-Pierri

    Suggestion: Use the Edit (menu) -> Begin / End Select feature rather than holding Shift+Alt+DownArrow (or Shift+Alt+UpArrow) to scroll through A LOT of lines. In between the first Begin/End-Select (the “begin”) and the second (the “end”) you can use any of the document navigation functions (suggest move-to-end-of-doc (or start), or maybe the Search (menu) -> Goto…) to quickly move through a range of lines.

    One NOTE for Begin/End Select for column mode is that before invoking the End-Select you have to get your caret into column mode, or you will end up with a stream and not a column block.

    Doing it an alternate way is no excuse for a crash, though, if the crash turns out to not be the fault of a plug-in…

  • Replace with breakline

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    chcgC

    Is it really like written above with land and CGXML have no closing tag?

  • NppFTP plug-in doesn't show in plugin menu.

    Locked
    2
    0 Votes
    2 Posts
    12k Views
    chcgC

    Do you have the pluginmanager? Current version is https://github.com/bruderstein/nppPluginManager/releases/tag/v1.4.9. It would appear under plugins and you get a list of available plugins to install.
    You could also get the nppftp plugin directly at:
    https://github.com/ashkulz/NppFTP/releases/tag/v0.27.3 (get the one matching you n++ version 32bit or 64 bit)
    Extract the zip and place the nppftp.dll under n++ “install dir”/plugins, see also http://docs.notepad-plus-plus.org/index.php?title=Plugin_Development#How_to_install_a_plugin

  • 0 Votes
    4 Posts
    3k Views
    chcgC

    I do not observe the descript behaviour. Maybe one of the plugins is causing it. You may want to test this be starting N++ without plugins. See http://docs.notepad-plus-plus.org/index.php/Command_Line_Switches, so notepad++ -noPlugins should show you the plain n++ behaviour.

  • Help for my programme

    Locked
    2
    0 Votes
    2 Posts
    894 Views
    chcgC

    What means “run a program on N++” ? Did you load the program executable itself or source code for it? What special chars do you see. A screenshot might be helpful.

  • Left Margin

    Locked
    9
    1 Votes
    9 Posts
    2k Views
    Claudia FrankC

    @chcg

    Du hast natürlich Recht, das jeder Font seine eigene Breit hat, aber ein Font darf doch nicht einfach zwei Whitespace schlucken.

    @The NiceKype
    bist Du sicher das dem so ist, sprich Du hast Dir die Whitespaces anzeigen lassen und wenn
    Du eine Schriftart benutzt siehst Du 2 Leezeichen und bei einer anderen 4?

    Cheers
    Claudia

  • Incorporating SaveAsAdmin's handling into N++'s

    Locked
    8
  • 0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Mehanik511

    afaik, nothing builtin so far.
    A possible solution might be using a scripting language plugin as shown here.

    Cheers
    Claudia

  • HELP: NP++ Portable does not save its settings!

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Enkidu0815E

    Oh… Tnx. I was not aware that it is so easy. :)
    I downloaded ZIP version and it is working as expected.
    Tnx!

  • Is there a plugin for deleting spaces in blocks of data?

    Locked
    14
    0 Votes
    14 Posts
    4k Views
    osg174O

    Hi all!
    Thank you very much for your support on this. I really appreciate your effort during the weekend.
    I already tested with the Claudia’s script, and adding as well the start = 0 changes and deleting the [1:] and it works really great.
    I just placed the { character at the beginning for sharing the content. No need to take it in consideration.
    I have never worked with Python [I’m a PL/SQL and database developer], and now I’d like to try to make magic with it. The Claudia’s support was awesome to make the script work in Notepad++.
    Thank you really so much again to you two, and happy coding!
    =)

  • move * before

    Locked
    13
    0 Votes
    13 Posts
    4k Views
    Pouemes44P

    @guy038 said:

    (?-s)

    hello thanks for answer
    i try also to learn
    for claudia solution i have no error if i add (?-s)

    like this
    (?-s)(<a.?>)(*\x20)(.?</a>)

    $1$3

    without (?-s) or with (?s) i get errors in results

  • Minimalistic core for UDL description?

    Locked
    1
    0 Votes
    1 Posts
    775 Views
    No one has replied
  • lag experience of typing.

    Locked
    8
    0 Votes
    8 Posts
    6k Views
    Scott SumnerS

    @guy038

    I think the most important thing was the diagnosis, which you provided. [I had no idea from the original posting that it was going to end up being a typematic rate problem]. My addition was just a different way of doing it–I think most can adapt what I was saying into their own specific languages, regardless of what the exact text is.

  • Does not save the files I need to use

    18
    0 Votes
    18 Posts
    7k Views
    Claudia FrankC

    Concerning the wrongly shown file extensions.
    The above screenshots about .bat registered but dialog
    shows additional extensions being registered.

    This drove me some nuts.
    Whenever I tried to do the same with python and ctypes it worked but
    npp showed clearly it isn’t.

    I assume I finally understood what the issue is,
    it is within RegExtDlg::getRegisteredExts()

    There is no check if RegOpenKeyEx or RegQueryValueEx succeeded or failed but
    one could assume that it isn’t necessary as the next if clause checks the previously
    generated variables valType and valData and if the two reg calls fail then
    those two variables are invalid.

    Well, I don’t think this is the case. If I understood correctly what I read it happens
    that those variables hold the state from the last successful registry calls
    and I guess this explains very well why we see what we see.

    So in theory a modification like

    ... TCHAR valData[extNameLen]{'\0'}; ... int valType = 0;

    should do the trick.

    Can someone with a more solid c++ knowledge confirm if this is the case?

    Thank you and cheers
    Claudia

  • Notepad doesn't recognize my syntax as python. Please help

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Michael DeaneM

    @Claudia-Frank Thank you. Danke. Gracias. I’ll let you know how it works out.

    MD

  • 0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Sepehr-E

    I know Notepad++ is very complex. Is there any way to do this?

    Yes, a script, e.g. python script, could do this BUT can we rely on your example data?
    I mean, it is relatively easy to identify an url but getting the name part
    of subdomain isn’t that easy.

    So, does every subdomain follow your example?
    This is hostname.sub.domain like www.translate.com?
    Or could it be that you have also something like
    http://x15w.sub.text.org/
    If the latter is the case, what should be used as the filename?
    sub or text or sub.text or subtext or …

    Cheers
    Claudia

  • Search multiple terms or search file import

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Claudia FrankC

    @Scott-Sumner

    good point, deserves an upvote :-)

    Cheers
    Claudia