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

      Change shortcut for zoom in / out - "Num +" and mouse wheel not available on laptop

      Watching Ignoring Scheduled Pinned Locked Moved shortcut key shortcut mapper zoom
      16
      0 Votes
      16 Posts
      5k Views
      notdodgeballN

      @PeterJones Much appreciated

      A few links for better understanding or future reference in the event or of a dev wanting to take a chance.

      https://w3c.github.io/uievents-code/
      https://jsfiddle.net/v1gz5c5m/1/
      https://github.com/Microsoft/node-native-keymap

    • vad RV

      Notepad++ crash (v8.4 through v8.6.4)

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      1 Votes
      7 Posts
      2k Views
      vad RV

      @Michael-Vincent Thanks!

    • Luis Piña IIIL

      I want to fold in text files.

      Watching Ignoring Scheduled Pinned Locked Moved folding txt files
      7
      0 Votes
      7 Posts
      3k Views
      PeterJonesP

      @Luis-Piña-III said in I want to fold in text files.:

      How do I set an extension for TXT?

      Once you’ve saved your UDL, when you look at the Language > User Defined Language > Define your language… dialog box and have that language selected, you get a Ext: box, where you can type txt to define that *.txt will be interpreted as your UDL. (You can see this box in my screenshot in my first reply, above.)

      https://npp-user-manual.org/docs/user-defined-language-system/#udl-dialog-box-or-window

    • M

      [SOLVED] Extract the last number of each line

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      581 Views
      PeterJonesP

      @mike69290 said in [SOLVED] Extract the last number of each line:

      Omg found it! I was looking in the menus.

      It’s also in the menus: Search > Copy Styled Text > Find Mark Style

      Moreover the button is not translated in my language.

      You might want to check to see if you’ve just got an outdated translation file. Often, config files don’t get overwritten when you do an update. I recommend that you try downloading the most recent zipped edition, and grab the most recent copy of your localization file from there.

      But when I searched the localization files for v8.6.4 portable, it appears that only 39 of the 92 localization files have <Item id="1725"… so yes, there is a good chance that string (and many others) haven’t made it into your specific localization. Notepad++ relies on volunteers to submit translations, and some of the translations aren’t as active as others. (While the author of Notepad++ knows at least 3 languages fluently (as far as I can tell), I’m sure he doesn’t know all 92 of the localization languages , so cannot keep them up to date without outside help).

    • H

      More than eight keyword lists for User Defined Language?

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      511 Views
      EkopalypseE

      @HydraheadHunter said in More than eight keyword lists for User Defined Language?:

      Currently it only highlights words when I make an edit to the config file

      This is a kind of “live preview function” that makes it easier for users to see whether a particular regex is doing what it is supposed to do. It also gives hints if a regex is wrong or if there are overlaps with the actual lexer.
      As soon as you save and close the ini file, the regex rule is also applied to the configured buffers. If you think something is not working as expected, feel free to report a bug here.

    • Brian Y.B

      How to bookmark lines with certain characters in certain positions

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      889 Views
      Brian Y.B

      Gotcha. Thanks so much, that will really help.

    • DIMITRIOS STAMATIOUD

      Removing characters in a certain position on the line

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      643 Views
      DIMITRIOS STAMATIOUD

      @Mark-Olson,
      Thank you so much, you saved me from many hours of work.
      Much Appreciated.

    • Stefan PecenS

      Unwanted multiple confirmations for replace in all files

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      735 Views
      Alan KilbornA

      @Entropiemaximun said in Unwanted multiple confirmations for replace in all files:

      so i can do an arduino fake keyboard to do it

      If that works for you, then I suppose you can.

    • B

      UDL folded comment spontaneously unfolds

      Watching Ignoring Scheduled Pinned Locked Moved
      2
      0 Votes
      2 Posts
      271 Views
      PeterJonesP

      @Blind-SQuirreL ,

      Yep, my experiments show the behavior. You have found yet another bug in UDL. Too bad there have been no bug fixes or feature improvements in UDL in years, so even if you made an official bug report, I doubt anything would ever happen with it. (There are other longstanding UDL bugs dealing with comments and folds. FOr example, if you have one or more single-line comments at the beginning of the file, any folding that happens afterward might be off-by-one-or-more-lines from where it should be.)

      As a workaround, I suggest not using the multi-line comment definition if you want to fold that section of text; instead, use Folding in Code Style 1 if you can – or Style 2 if you’ve already used Style 1 (and are able to have newlines or spaces before and after your { and } indicators ).

    • X

      Scroll and search through keyword lines by alphabetical order?

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      344 Views
      Alan KilbornA

      @Alan-Kilborn said in Scroll and search through keyword lines by alphabetical order?:

      ^\w-$

      I intended it to be ^\w+-$ but the + got lost somehow. :-(

    • sweezy92S

      How to convert scientific notation to standard?

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      3k Views
      Mark OlsonM

      This regex will capture all scientific notation numbers, and can also handle leading + signs and number with leading decimal points:
      ([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?)

      Seriously, everyone should just write that down somewhere so they can look it up in times of need.

    • L

      Unicode 'ÿ' , problem converting to Hex 'FF'

      Watching Ignoring Scheduled Pinned Locked Moved
      36
      1 Votes
      36 Posts
      5k Views
      rdipardoR

      @LanceMarchetti said in Unicode 'ÿ' , problem converting to Hex 'FF':

      int val = static_cast<unsigned char>(selText.getChar(i));

      I’m afraid this type cast will corrupt data if any character ordinal is greater than 0xFF, e.g. ġ. See, for example:

      Fix character truncation bug that lead to ‘ġ’ styled as an operator since its low 8 bits are equal to ‘!’

      selText.getChar already returns an int, which is 32-bits wide, so more than enough for any ASCII or Unicode ordinal.

      The real issue is the declaration of SelectedString::_str as char *, which limits every representable “byte” to a maximum ordinal value of 0x7F. It should be the generic TCHAR * type, which becomes wchar_t * when the _UNICODE compile-time definition is set (as it always has been ever since Notepad++ became a Unicode application about 17 years ago). A wchar_t is 16 bits, which would accommodate “extended” 8-bit ASCII as well as the East Asian double-byte character sets that remain popular with some users.

    • No NopeN

      Replacing many occurences of different text blocks

      Watching Ignoring Scheduled Pinned Locked Moved
      8
      0 Votes
      8 Posts
      1k Views
      PeterJonesP

      @No-Nope said in Replacing many occurences of different text blocks:

      npp-user-manual page on regular-expressions, but I only found references to the tabs in the seearch/replace dialogue.

      Interesting. Yes, there are 68 matches, and the ones near the top of the Searching page are all about which tab of the Find/Replace/Mark dialog you are on – but that’s because the user interface for searching is what’s described first in the Searching page.

      But as soon as you go into the actual Regular Expression section of that page, it’s the third match (the other two being “table” and “comfortable”), and it’s a line that literally uses the word “tab” four times.

      5062f77a-de74-42bf-9fcb-420d42bcd147-image.png

      I’d make it easier to find if I could, but I don’t see any way to better help people find the regular expression syntax for the tab character than to put it in the section on regular expressions and use both “tab” and “character” in the description. I’m sorry that wasn’t enough for you to find it.

    • dr ramaanandD

      How to find two strings then replace the first set with the second set and also keep the second set of strings ?

      Watching Ignoring Scheduled Pinned Locked Moved regex
      4
      0 Votes
      4 Posts
      275 Views
      dr ramaanandD

      @PeterJones OK, thanks, I could manage the rest.

    • TN MCT

      remove text

      Watching Ignoring Scheduled Pinned Locked Moved
      11
      0 Votes
      11 Posts
      2k Views
      TN MCT

      @Mark-Olson thank you, sir for explaining. I would be lying if I say I understand. But I promise to go through it carefully and try to learn. Thank you for your time and detailed description.

    • Ismael SantanaI

      import libreries notepad++ in a python script

      Watching Ignoring Scheduled Pinned Locked Moved
      3
      0 Votes
      3 Posts
      617 Views
      Michael VincentM

      @Ismael-Santana said in import libreries notepad++ in a python script:

      I installed NppExc to run python

      My guess without seeing any of your installation or how you did the things you say you did is that you need to updated your NppExec script to use the python.exe that is in the virtual environment; otherwise, you are just running the system Python, where presumably, you do not have pandas installed.

      Cheers.

    • Helmut MuellerH

      After Update to 8.6.2 it takes 2 sec. to load any file

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      415 Views
      xomxX

      @Helmut-Mueller

      From what Notepad++ version you have upgraded to the v8.6.2?

      Can you go few versions back to where the error does not show up like that? This could help us to determine a specific change in the N++ code causing this problem. Try with portable versions from the N++ repository.

      Close heidiSQL, Open File: ok
      Start heidiSQL: Open File: 3 sec

      Maybe you could also ask here if there is not a possible file IO conflict in between the N++ and heidiSQL.

    • OpossumPetyaO

      Finding out install location - could you try on cmd?

      Watching Ignoring Scheduled Pinned Locked Moved
      7
      0 Votes
      7 Posts
      2k Views
      mpheathM

      @OpossumPetya said in Finding out install location - could you try on cmd?:

      C:\>for /f "tokens=2 delims=REG_SZ" %i in ('reg query HKLM\SOFTWARE\Notepad++ ^| findstr /i /l /c:"Default"') do @echo %i 2> NUL C:\Program Files\Notepad++ C:\>

      delims operates on characters, not words so a path that contains any character of R, E, G, _, S, Z will echo a incomplete path. For example in a batch file:

      for /f "tokens=2 delims=REG_SZ" %%A in ( 'echo (Default^) REG_SZ C:\Program Files\rReEgG__sSzZ' ) do ( echo %%A )

      echoes C:\Program Files\r as R is a delimiter and e is the next token.

      This is what I have tried so far to echo both x86 and x64 install paths of Notepad++

      setlocal if defined ProgramW6432 ( set "bit=/reg:32 /reg:64" ) else ( set bit="" ) for %%Z in (%bit%) do ( for /f "tokens=1,2,*" %%A in ( '2^>nul reg query HKLM\Software\Notepad++ /ve %%~Z' ) do if "%%~A" == "(Default)" if "%%~B" == "REG_SZ" ( if not "%%~C" == "(value not set)" ( echo "%%~Z" "%%~C" ) ) )

      It also echoes the bit arg to let you know where the data came from. The bit arg will be empty if ProgramW6432 is not defined. I cannot specify if the bit arg is valid on Windows Vista or XP as no records available and do not have a VM for those OSes setup currently to test.

    • Zephaniah Waks 0Z

      reset search results window to what it was originally

      Watching Ignoring Scheduled Pinned Locked Moved
      5
      0 Votes
      5 Posts
      336 Views
      PeterJonesP

      @Zephaniah-Waks-0 said in reset search results window to what it was originally:

      how can i mark this as solved

      This forum doesn’t have a mechanism for marking something as “solved”.

    • Antonio Rojas CarmonaA

      Cambio de color del fondo del editor

      Watching Ignoring Scheduled Pinned Locked Moved
      4
      0 Votes
      4 Posts
      74k Views
      RobetutoR

      Para el Modo Oscuro: Settings>Dark Mode

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