• help me notepadd++ error

    2
    0 Votes
    2 Posts
    225 Views
    PeterJonesP

    @Dianta-Daniswara-Putra said in help me notepadd++ error:

    Why is it that every time I run Java this error code always appears even though the compile time is perfect and there are no errors?

    If you manually open a windows command prompt (cmd.exe or powershell.exe window), and change to the d: drive and cd d:\stuktur then run java struktur what happens? If you get the same error, then that’s your problem; if you get something different, then your environment variables or something else is different between the windows command prompt. You need to make sure that you have all the same settings in the NppExec script that you do to get the windows command line working.

  • Can i always show active tab when editing autoscrolling tab bar if needed

    6
    1 Votes
    6 Posts
    347 Views
    PeterJonesP

    @MarkusBodensee said in Can i always show active tab when editing autoscrolling tab bar if needed:

    Maybe it is worth to file a bug report on Github, since I am not the only one observing this.

    Since this is a real, it would definitely make sense to report it at GitHub, as described in our FAQ, otherwise the developer will never be made aware that people are seeing this.

  • Emulation of the "View > Summary" feature with a Python script

    26
    1 Votes
    26 Posts
    3k Views
    Alan KilbornA

    @guy038 said in Emulation of the "View > Summary" feature with a Python script:

    did you receive my e-mail to you, on March, 21, with an attached zip archive to possibly reproduce the problem ?

    Hi Guy. Yes, I did receive it but haven’t had time to work with it. Because of your prompting, however, I just did finish evaluating it.

    I believe that what is happening in the buggy case is that THIS PS bug is manifesting (side note: it’s a bug that I reported). When the caret is at the first location in the file (aka position 0) – which is one of your test cases – then the bug kicks in.

    The bug has been fixed, but I don’t believe there has been a release of PS2 after the fixing, so only PS3 contains the fix (which is why I – running PS3 – did not see a problem with your script code that did not include the bytes_count check against 0).

    I hope this clears it up.

  • Notepad++ enters unwanted invisible (ASCII 0–31) characters

    15
    2 Votes
    15 Posts
    2k Views
    cezar-mpC

    @Alan-Kilborn cool man!

    Thanks for the feedback! Can’t wait to update to 8.6.5 then!

    You have a good one!

  • auto insert <br> at the end of every line

    10
    0 Votes
    10 Posts
    2k Views
    mkupperM

    @notdodgeball said in auto insert <br> at the end of every line:

    Just curious, now it doesn’t?

    I have forgotten why I never switched to TextFX2. I ended up not updating Notepad++, staying at v8.3.3 plus classic TextFX, for about a year, until the TextFX features I used were added to Notepad++.

    I have also come to realize that I am not a fan of Swiss Army knives. I use one or two parts of a knife and the remainder is dead weight. TextFX was/is a very thick Swiss Army knife.

    I’d rather use plugins or scripts that do one thing, such as adding and maintaining a <br> at the end of each like how this thread started out, or wrapping text, as this thread’s topic drifted to.

  • 0 Votes
    8 Posts
    795 Views
    mkupperM

    @shmuelisrl and @ImSpecial

    Hiding lines seems to work fine in dark mode. I’m using v8.6.5 but I suspect any of the more recent versions will work.

    dark-hidden.png

  • Link underlines no longer auto-applied on search/replace

    8
    1 Votes
    8 Posts
    473 Views
    mkupperM

    This issue has been fixed via this commit which also fixes github issue 13916.

    For those interested in trying the Notepad++.exe go to https://github.com/molsonkiko/notepad-plus-plus/actions/runs/8351086718 and download either Notepad++.MSVC.Win32.Release or Notepad++.MSVC.x64.Release. You will get a zip file that you can drop on top of the portable or installed version of Notepad++ you want to test with.

    The coding changes for 13916 appear non-trivial and so I doubt @donho will pull them into v8.6.5 which is already in the release candidate state.

  • Highlighting variable in backticks in JavaScript

    12
    1 Votes
    12 Posts
    1k Views
    PeterJonesP

    @TomRobert said in Highlighting variable in backticks in JavaScript:

    The bug seems fixed:

    https://github.com/ScintillaOrg/lexilla/issues/114

    But I don’t see any change in Notepad++ yet?

    … And if you follow the various links, the commit that fixed it was tagged in rel-5-3-1 two weeks ago. So it is unsurprising that Notepad++ hasn’t yet updated it’s Lexilla instance and made a release.

    Update: nevermind, that was merged into Notepad++ last week. Have you checked to see if it’s in v8.6.5 release candidate? Like say in item 6 of those release notes

  • Broken repeat search using \A

    4
  • Disable auto-complete

    4
    1 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @Abel-Peralta said in Disable auto-complete:

    you are a friend of mine now

    You could also be on friendly terms with the user manual:

    https://npp-user-manual.org/docs/auto-completion/

    The UM is accessible via the ? menu in Notepad++:

    cd6c3920-b795-4375-a64e-7991e4a56964-image.png

  • Multi ShortCuts for all like in Scintilla command

    4
    0 Votes
    4 Posts
    560 Views
    Alan KilbornA

    @kuzduk-kuzduk

    How i can make an official feature request?

    You read the FAQ area, which you should have done when you first joined this forum.

  • Column mode smart selection shortcut

    11
    1 Votes
    11 Posts
    2k Views
    pbarneyP

    @Ekopalypse said in Column mode smart selection shortcut:

    Shouldn’t that be 42 instead?

    That just selects everything. And by “everything,” I mean everything: life, the universe, etc.

  • List of free keyboard shortcuts

    11
    1 Votes
    11 Posts
    12k Views
    PeterJonesP

    @Alan-Kilborn said in List of free keyboard shortcuts:

    Interesting; I’ve never noticed that “key” before.
    And I still don’t know what it is. :-P

    VK_OEM_102. It’s a key on some international keyboards, not on standard US keyboards.

    The third post of the shortcuts FAQ has the <> listed, and you’ll see it has a description in the French column but not US column. And @dinkumoil’s German description and @notdodgeball’s Portuguese description show what the key maps to on those keyboards

  • Show/Hide Tools Panel via Hot Key

    7
    0 Votes
    7 Posts
    1k Views
    kuzduk = kuzdukK

    @guy038 said in Show/Hide Tools Panel via Hot Key:

    notepad.hideToolBar(not(notepad.isToolBarHidden()))

    Thanks! It is working via 1 hour of learning PytonScript…
    Thanks for all who helped in current problem!

    Many little thigs in npp can use via monstrous system of plugin, like Firefox philosophy… It is not good! Old Opera and today Vivaldy phylosophia is best: all setting work correctly from installer.

  • Interpret an Unicode value as real character in Notepad++

    14
    0 Votes
    14 Posts
    2k Views
    rdipardoR

    FYI

    The HTML Tag wiki now includes a more accurate description of its decoding limitations. Not sure yet if this can be improved while the source code is targeting the Free Pascal runtime, which tends to favour UTF-8 as being more compatible with the many different platforms it supports. Perhaps for the sake of legacy Delphi code, the WideString type is an exception:

    WideStrings consist of COM compatible UTF16 encoded bytes on Windows machines (UCS2 on Windows 2000), and they are encoded as plain UTF16 on Linux, Mac OS X and iOS.

    The P.E. header of a recent plugin DLL shows “4.0” as the minimum required OS version, even older than Windows 2K, so it’s possible that Unicode text is actually encoded as UCS2 (!).

    The orignal developer seems to have assumed that a signed 16-bit SmallInt would be enough for all potential code points. They’ve been stored as 32-bit unsigned integers for a long time now, so there’s really no excuse for not extending the logic to decompose ordinals north of U+010000 into surrogate pairs and feeding them back into the decoder.

  • Remove duplicate lines removes end of line marks and sorting moves them

    5
    1 Votes
    5 Posts
    416 Views
    Alan KilbornA

    It’s a somewhat hotly contested thing: Is a line a line without a line-ending at its end? For me, it’s a No…and, because Notepad++ doesn’t enforce that, I, like Peter, use the editorconfig plugin, which forces the final line in a file to have a line-ending. An unfortunate side effect of that is that Notepad++ won’t sort “correctly”.

  • sort seems to get confused if you've done a find and replace

    6
    0 Votes
    6 Posts
    381 Views
    Alan KilbornA

    @ThosRTanner said in sort seems to get confused if you've done a find and replace:

    It’s a bit confusing of it to display the things the same though.

    It’s a Scintilla thing. Scintilla considers CR alone, LF alone, or CRLF (together) as the end of a line, regardless of the file’s line-ending type as shown in the status bar.

    BTW, I think I remember that the line-ending type (determined when a file is loaded) isn’t a complicated algorithm: it’s simply the first line-ending in the file.

  • 1 Votes
    2 Posts
    750 Views
    guy038G

    Hello, All,

    In my last post, I forgot some important points ! So, refer to this correct version, below and forget the previous one !

    When I began to “follow” Notepad++, in 2012, I was using N++ ANSI versions. At this time, N++'s forums were located on SourceForge.Net and, of course, my first replies to users were stored as ANSI files.

    Recently, I was wondering how many files, among my 1,800 posts about, stored on my laptop, have a true ANSI encoding, in order to re-encode them as UTF-8 with the two commands :

    Encoding > Convert to UTF-8

    File > Save

    I suceeded to find out a way to achieve it ! You just need two DOS tools : iconv.exe and xxd.exe

    Notes :

    Using the xxd.exe program alone, which is a hexdump utility, is not enough to determine the correct encoding. In fact, it can identify, without error :

    True UTF-8-BOM files with the first three bytes EFBBBF

    True UTF-16 BE BOM with the first two bytes FEFF

    True UTF-16 LE BOM with the first two bytes FFFE

    But it cannot display, at the first sight, any difference between an ANSI and a UTF-8 file without a BOM, unless scanning the files completely !

    Rememver also that, if all bytes of a file have a value below \x80, Notepad++ considers that it’s a pseudo UTF-8 file, by default !

    Thus,

    Download the binaries, dependencies and documentation archives, relative to the iconv.exe program, from :

    https://gnuwin32.sourceforge.net/packages/libiconv.htm

    Move to the directory where you extract the iconv.exe program and its 3 dependencies : libcharset1.dll, libiconv2.dll and libintl3.dll

    Now, in this same directory, download the xxd archive from :

    https://sourceforge.net/projects/xxd-for-windows/files/xxd-1.11_win32(static).zip/download

    Extract the xxd.exe file

    Open a DOS window

    Run, first, the command chcp 1252 ( in order to get an ANSI output for this DOS window ! )

    Move to the folder containing, both, iconv.exe and xxd.exe

    Then, run the command iconv -f UTF-8 -t UTF-8 <Full_Directory_Path>\*.* 1> NUL 2>> results.txt

    Of course, you must replace the <Full_Directory_Path> zone by the folder location containing all the files to scan for encoding !

    => With this command, you are certain that the OUTPUT file ( results.txt ) contains only files which are not presently encoded in UTF-8 ( so, in N++, they can be true ANSI files, with some bytes between \x80 and \xFF or true UTF-16 files with a BOM )

    Now, open the results.txt file in N++

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-si)^Permission denied\R|^.*iconv:\x20|: cannot convert$

    REPLACE Leave EMPTY

    Tick the Wrap around option

    Select the Regular expression search mode

    Click on the Replace All button

    => We keep the full pathnames, only

    Save the results.txt file

    Open, again, the Replace dialog ( Ctrl + H )

    SEARCH (?-s)^.+

    REPLACE \( echo | set /p="$0 " & xxd.exe -l2 -u "$0" \) >> results.txt

    Tick the Wrap around option

    Select the Regular expression search mode

    Click on the Replace All button

    Now, add the line @echo OFF at the very beginning of the file

    And rename this file as results.bat

    If the current encoding of this batch file is UTF-8, run the Encoding > Convert to ANSI option ( IMPORTANT, as the DOS window is ANSI too )

    Save this new results.bat file

    Run the results.bat file, in the DOS window

    Back to Notepad++, open the new results.txt file

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-s)^.+(FFFE|FEFF).+\R|\x2000000000:.+

    REPLACE Leave EMPTY

    Tick the Wrap around option

    Select the Regular expression search mode

    Click on the Replace All button

    => We get rid of the UTF-16 files which have a BOM equal to FEFF or FFFE

    Save the results.txt file

    => Thus, you should get, only, the true ANSI files, containing some bytes between \x80 and \xFF, that need a further UTF-8 or UTF-8-BOM encoding !

    Delete the results.bat file

    Finally, close the DOS window

    Best Regards,

    guy038

  • Column To Multi-Select FORCED ON

    5
    0 Votes
    5 Posts
    301 Views
    N

    @Alan-Kilborn thank you so much for replying. I must apologize for being rude and abrupt. I was only using the empty “%APPDATA%\Notepad++\noColumnToMultiSelect.xml” file to disable. I went into the settings, unchecked those boxes… and now it has disabled. Thank you again for your patience and consideration.

  • Wildcard in Replace Line?

    4
    1 Votes
    4 Posts
    331 Views
    Alan KilbornA

    @x-77-x said in Wildcard in Replace Line?:

    how do you guys even know this stuff!?

    Umm, it’s all documented in the User Manual, which is linked to from the ? menu option in Notepad++…

    Look under the Searching heading, for Regular Expressions.