• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • R

    can't compile java codes

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 28, 2019, 12:19 PM
    Sep 28, 2019, 11:17 AM
    0 Votes
    2 Posts
    271 Views
    R Sep 28, 2019, 12:19 PM

    @Rohin-Maleywar said in can't compile java codes:

    Error: Could not find Java SE Runtime Environment.

    set a working directory first

    cd directory

  • G

    Plugin for opening files from clicking text in a file?

    Watching Ignoring Scheduled Pinned Locked Moved
    8 Sep 28, 2019, 9:17 AM
    Sep 26, 2019, 6:02 PM
    1 Votes
    8 Posts
    2k Views
    R Sep 28, 2019, 9:17 AM

    @GreatMCGamer said in Plugin for opening files from clicking text in a file?:

    When clicked the plugin will look for the specified file by going 2 folders backwards from the file

    find_and_open_file_x86.zip

    find_and_open_file_x64.zip

    wacth at youtube

  • T

    Custom Styles for 'Special' Comments

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 26, 2019, 2:24 PM
    Sep 25, 2019, 8:34 PM
    0 Votes
    4 Posts
    713 Views
    T Sep 26, 2019, 2:24 PM

    @PeterJones said in Custom Styles for 'Special' Comments:

    So I see a conflict: do you want to use a UDL ([Language > Define Your Language](https://npp-user-manual.org/docs/user-
    If using the builtin HTML lexer, unfortunately Settings > Style Configurator > HTML dialog doesn’t seem to list any styles that have user-defined keywords. And even if you could, I think comments would override that.

    I was hoping to simply modify the built in HTML lexer. Thanks for confirming that that is not possible.

    However, there are workarounds:

    you can add extra highlighting to a builtin lexer (like the HTML lexer) using regexes via the script EnhanceAnyBuiltinLexer.py that @Ekopalypse shares, in this linked post you can add extra highlighting to a UDL language using regexes via the script EnhanceUDLLexer.py that @Ekopalypse shares in this linked post

    I will check these out, but regex is usually challenging for me. I’ll give it a go.

    Thanks again,

    Tom Benedict

  • G

    UDL-XML for Perl

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 25, 2019, 1:02 PM
    Sep 20, 2019, 3:19 PM
    0 Votes
    4 Posts
    493 Views
    P Sep 25, 2019, 1:02 PM

    @Gerhard-Petrowitsch said in UDL-XML for Perl:

    Can you give me a pointer on how to realize option 1?

    The Preferences > Style Configurator documentation explains:

    Some language/style combinations (like Preferences > Style Configurator > Perl > INSTRUCTION WORD) will additionally have a list of default keywords (not editable) and user-defined keywords (which allow you to add new keywords to apply this style to).

  • R

    Notepad++ File Association vs. No Authenication

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 25, 2019, 12:59 PM
    Sep 22, 2019, 3:53 PM
    0 Votes
    3 Posts
    396 Views
    P Sep 25, 2019, 12:59 PM

    @Randy-Reist said in Notepad++ File Association vs. No Authenication:

    authentication error.

    Authentication errors in Notepad++ sound like a proxy issue. See this topic for how to set up Notepad++ to properly see your proxy. Unfortunately, there are some proxy configurations that NPP doesn’t handle. You may have to turn off the auto-updater, and manually install updates and maybe plugins as well.

  • S

    Wrong folder position

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 24, 2019, 2:27 PM
    Sep 24, 2019, 2:27 PM
    0 Votes
    1 Posts
    173 Views
    No one has replied
  • E

    Looking for a boost regular expression

    Watching Ignoring Scheduled Pinned Locked Moved
    11 Sep 23, 2019, 6:13 PM
    Sep 22, 2019, 9:42 PM
    0 Votes
    11 Posts
    744 Views
    E Sep 23, 2019, 6:13 PM

    @MAPJe71 , @Alan-Kilborn

    yes, that is helpful - thank you very much.

  • T

    Join and break lines

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 23, 2019, 3:04 PM
    Sep 23, 2019, 6:08 AM
    0 Votes
    3 Posts
    317 Views
    T Sep 23, 2019, 3:04 PM

    i’m using notepad 7.7.1

  • S

    Notepad++, Scintilla, SendMessages and Delphi

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 22, 2019, 11:07 PM
    Sep 20, 2019, 7:07 PM
    0 Votes
    5 Posts
    1k Views
    P Sep 22, 2019, 11:07 PM

    @Sun-Bright said in Notepad++, Scintilla, SendMessages and Delphi:

    But it seems that this will be impossible, because from the address space of my program, the scintilla will not be able to get data in the address space of npp.

    You can actually send strings back and forth, even from another process. I’m starting to do it in my developing perl-driving-npp module. I don’t know how to do it in delphi, but the commands involved are VirtualAllocEx, WriteProcessMemory, ReadProcessMemory, and VirtualFreeEx. (Oh, I misinterpreted @Ekopalypse’s response; he was saying the same thing. But now I’ve linked to the official win32 api for you. :-) )

    They may be called something else in Delphi. (For example, in the perl wrapper Win32::GuiTest I am using for issuing the SendMessage to NPP, they call those AllocateVirtualBuffer, WriteToVirtualBuffer, ReadFromVirtualBuffer, and FreeVirtualBuffer.

    For commands that want to get or send a single string, like NPPM_DOOPEN for sending a string via LPARAM, or NPPM_GETFULLPATHFROMBUFFERID for reading a string via LPARAM, I use the following sequences successfully.

    # $obj->SendMessage_getUcs2le( $message_id, $wparam ): # issues a SendMessage, and grabs a string up to 1024 bytes, and # converts them from UCS-2 LE into up to 512 perl characters # (includes the memory allocation necessary for cross-application communication) # RETURN: the Perl string sub SendMessage_getUcs2le { my $self = shift; croak "no object sent" unless defined $self; my $msgid = shift; croak "no message id sent" unless defined $msgid; my $wparam = shift || 0; my $buf_uc2le = Win32::GuiTest::AllocateVirtualBuffer( $self->hwnd, 1024 ); # 1024 byte string maximum Win32::GuiTest::WriteToVirtualBuffer( $buf_uc2le, "\0"x1024 ); # pre-populate my $rslt = $self->SendMessage( $msgid, $wparam, $buf_uc2le->{ptr}); #diag "SendMessage_getStr(@{[$self->hwnd]}, $msgid, $wparam, @{[explain $buf_uc2le]} ) = $rslt"; my $rbuf = Win32::GuiTest::ReadFromVirtualBuffer( $buf_uc2le, 1024 ); Win32::GuiTest::FreeVirtualBuffer( $buf_uc2le ); return substr Encode::decode('ucs2-le', $rbuf), 0, $rslt; # return the valid characters from the raw string } # $obj->SendMessage_sendStrAsUcs2le( $message_id, $wparam , $lparam_string ): # issues a SendMessage, sending a string (encoded as UCS-2 LE) sub SendMessage_sendStrAsUcs2le { my $self = shift; croak "no object sent" unless defined $self; my $msgid = shift; croak "no message id sent" unless defined $msgid; my $wparam = shift; croak "no wparam sent" unless defined $wparam; my $lparam_string = shift; croak "no lparam string sent" unless defined $lparam_string; # convert string to UCS-2 LE my $ucs2le = Encode::encode('ucs2-le', $lparam_string); # copy string into virtual buffer my $buf_str = Win32::GuiTest::AllocateVirtualBuffer( $self->hwnd, length($ucs2le) ); Win32::GuiTest::WriteToVirtualBuffer( $buf_str, $ucs2le ); # send the message with the string ptr as the lparam my $rslt = Win32::GuiTest::SendMessage($self->hwnd, $msgid, $wparam, $buf_str->{ptr}); # clear virtual buffer Win32::GuiTest::FreeVirtualBuffer( $buf_str ); # return return $rslt; }

    (And yes, I successfully use those same sequences for talking with the NPP hwnd and the Scintilla hwnds.)

    Similar sequences, but using Delphi syntax and function names, should work for those commands.

    I’m actually still working on getting the more complicated messages (which want WPARAM as a TCHAR** rather than just a TCHAR*), but the above wrappers work for all the single-string LPARAM messages.

  • IBIT_ZEEI

    Render FF/FormFeed/#12 as a Separator line

    Watching Ignoring Scheduled Pinned Locked Moved line separator
    9 Sep 20, 2019, 11:58 AM
    Sep 19, 2019, 10:58 PM
    0 Votes
    9 Posts
    790 Views
    Alan KilbornA Sep 20, 2019, 11:58 AM

    Seems like this would have to be something Scintilla needs to support before Notepad++ could even think about supporting it. So I think the best answer to the original question is “No”.

  • pnedevP

    How to compile and sign Notepad++ ?

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 20, 2019, 9:25 AM
    Sep 16, 2019, 8:36 AM
    0 Votes
    4 Posts
    559 Views
    pnedevP Sep 20, 2019, 9:25 AM

    @Alan-Kilborn ,

    As @Ekopalypse said the bigger part of the thread is lost during the transition to the new site.

    To make the long story short, I wanted to play a bit with the NUL-ified file contents on sudden reboot / power loss.
    There was no need for signing and I couldn’t build it on my own because I don’t have recent Visual Studio but I used the automatic integration (AppVeyor) to help with that.

    I made this PR (https://github.com/notepad-plus-plus/notepad-plus-plus/pull/6164) which hopefully fixes the issue.
    I don’t think much more can be done without further complications. Just to note that config and session files are still prone to the NUL problem because I didn’t want to introduce changes to TinyXML lib code at this point.

    If this PR gets merged only time will tell if the issue if fixed. If it doesn’t appear again a new patch can be made that uses the same Win32 file API to save also the configs and session files (making their saving safer as well).
    I would also use that same API to load files removing totally C run-time APIs but let’s make things one step at a time. Otherwise changes will be difficult to review and to get merged.

    This topic can be closed / locked.

  • IBIT_ZEEI

    Function list new language parser

    Watching Ignoring Scheduled Pinned Locked Moved function list udl language
    4 Sep 19, 2019, 9:52 PM
    Sep 19, 2019, 8:26 PM
    0 Votes
    4 Posts
    585 Views
    IBIT_ZEEI Sep 19, 2019, 9:52 PM

    Thanks @MAPJe71

    it was the “userDefinedLangName”
    was set to “XXX-…” and should be “xxx-…”
    to exactly match the name of the language
    in the Language menu… (it is case sensitive…)

  • ZombieEnderman5Z

    How do I get NP++ to enter characters via hex codes?

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 19, 2019, 4:37 PM
    Sep 18, 2019, 5:09 PM
    0 Votes
    3 Posts
    1k Views
    ZombieEnderman5Z Sep 19, 2019, 4:37 PM

    Hmm. Looks like it ought to work, thank you.

  • T- BONE TUBET

    ARRAY for note pad ++ PLEASE HELP!!

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 19, 2019, 3:21 PM
    Sep 19, 2019, 2:27 PM
    0 Votes
    5 Posts
    2k Views
    T- BONE TUBET Sep 19, 2019, 3:21 PM

    lol im willing you to give u my email??? u cant help me out at all??? ill pay you too

  • Tyler NaddyT

    How To Replace or Delete Text Between Numbered Lines

    Watching Ignoring Scheduled Pinned Locked Moved regex replace all deleting lines
    6 Sep 19, 2019, 1:50 PM
    Sep 11, 2019, 11:31 PM
    0 Votes
    6 Posts
    887 Views
    Alan KilbornA Sep 19, 2019, 1:50 PM

    @Tyler-Naddy

    So, sadly, the site migration lost a reply I made to this earlier. Luckily I still had the text of most of it in an N++ tab! :)

    Here’s the earlier reply again:

    We can accomplish this by borrowing from the info found here.

    As an example, say you want to skip 3 lines at the top of file, then replace then next 5 lines with something else. Note: Another way to say it is to replace line numbers 4 through 8.

    Use this regular expression search expression to match the lines: (?-s)(?<!\x0A)^(?:.*\R){3}\K(?:.*\R){5} and do a Replace-All with whatever you’d like (replace with nothing to delete those lines).

    Note that you have to do a Replace-All and not a simple Replace due to the \K syntax used. For the details of why this works, see the earlier referenced link.

  • laszlo_botkaL

    Can't login with my google account

    Watching Ignoring Scheduled Pinned Locked Moved
    15 Sep 19, 2019, 1:33 PM
    Sep 18, 2019, 2:09 PM
    0 Votes
    15 Posts
    1k Views
    P Sep 19, 2019, 1:33 PM

    @Alan-Kilborn said in Can't login with my google account:

    Don rarely listens here…Peter, do you have his ear?

    Unfortunately, his email ISP thinks my email ISP is a spam-site, so blocks my emails.

    However, since he’s more likely to check his announcement-threads, I replied over there pointing to here.

  • Alan BourkeA

    User-defined language not styling function parameters

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 19, 2019, 1:13 PM
    Sep 19, 2019, 7:55 AM
    1 Votes
    5 Posts
    685 Views
    P Sep 19, 2019, 1:13 PM

    @Ekopalypse said :

    I guess you need to do exactly the opposite and using a delimiter.

    Or, use operators 1 for the parens.

    Basically, if parens aren’t defined as anything, then only the rules for byte are applied, and the keyword rules (unless the prefix checkbox is marked) say that the keyword doesn’t count if it’s touching anything. However, once you put the ( ) in the operators 1, that defines the parens as operators which are allowed to touch anything.(*)

    If you do use the delimiter # rather than operators 1, you will have to enable nesting for the various keyword # in the delimiter # > styler dialog. [edit: I see @Ekopalypse already mentioned that; didn’t see it on my first read]

    *: operators 1 don’t require whitespace to be recognized; operators 2 do require whitespace to be recognized. (This is in https://github.com/notepad-plus-plus/npp-usermanual/blob/master/content/docs/user-defined-language-system.md , and will propagate to https://npp-user-manual.org/docs/user-defined-language-system/ at the next document release.)

  • TobiT

    10.000 Nulls instead of code :o !...

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 16, 2019, 7:55 AM
    Sep 15, 2019, 11:48 AM
    0 Votes
    3 Posts
    330 Views
    pnedevP Sep 16, 2019, 7:55 AM

    You can try using Recuva to restore your data as described here:
    https://superuser.com/questions/377904/recover-file-corrupted-due-to-power-cut-off

  • GG

    Looking for a simple color picker plugin

    Watching Ignoring Scheduled Pinned Locked Moved
    21 Sep 16, 2019, 3:48 AM
    Sep 14, 2019, 7:39 PM
    -1 Votes
    21 Posts
    9k Views
    Steven HaymesS Sep 16, 2019, 3:48 AM

    @G said:

    Thanks, very constructive. Might as well not say anything.

    Yup!

    Yes I should have make backups on 2 drives, BUT, I had sane files with no reasons to ever get corrupted, or almost, because Npp managed to do it.

    I always backup everything. I learned that lesson a long time ago, back in Windows NT days.

    Anyway, I’m done with Npp. Sad because I used it daily for years.

    Have you thought about using Vim instead? I have used it for daily for years too. I still use it.

    Have a good night guys, thanks for those trying to actually help. Bye.

    Bye too…

  • Joe BonnerJ

    clicking on hits in search results not opening a file

    Watching Ignoring Scheduled Pinned Locked Moved
    8 Sep 16, 2019, 12:34 AM
    Sep 15, 2019, 8:24 AM
    0 Votes
    8 Posts
    824 Views
    Joe BonnerJ Sep 16, 2019, 12:34 AM

    I am pretty sure I have worked out that it is the length. It worked to find some stuff but wasn’t find everything in the string. in the search window there is the string and it changes colour for my view (I cant work out how to post a pic here so am using bold=blue italics=green)

    fight_N|figure_N|firefighter_N

    Thanks for your help, I am now just manually going threw all my strings and cutting them down. Pretty sure that it is only when they are too long that I had any problems opening files.

    Cheers!

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors