• Number expression as close folding point

    6
    1 Votes
    6 Posts
    435 Views
    André AlbuquerqueA

    Thank you all for the support. The @guy038 work-around is helping for now.

  • How does npp persist and restore files that were opened between startup?

    4
    0 Votes
    4 Posts
    306 Views
    Alan KilbornA

    @ElusiveTau

    But it isn’t always on the “appdata” path. I could be located in the same folder as notepad++.exe is! In fact, that’s my preferred place for it.

  • Seeking Clarification on Entering Alt Keypad Characters

    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello, @haleba-hotmail, @peterjones and All,

    First, in your post, you’re speaking about 2 characters, one char part of the Basic Multilingual Plane ( BMP ) and the other character outside the BMP These are :

    The KATAKANA letter TU ( = TSU ) ( \x{30C4} ), from the Unicode block Katakana, in range 30A0–30FF

    The SHRUG 🤷 portrait symbol ( \x{1F937} ) from the Unicode block Supplemental Symbols and Pictographs, in range 1F900–1F9FF

    The main characteristics of these two chars are :

    Character ツ Character name KATAKANA LETTER TU Hex code point 30C4 Decimal code point 12484 Hex UTF-8 bytes E3 83 84 Octal UTF-8 bytes 343 203 204 UTF-8 bytes as Latin-1 characters bytes ã <83> <84>

    and

    Character 🤷 Character name SHRUG Hex code point 1F937 Decimal code point 129335 Hex UTF-8 bytes F0 9F A4 B7 Octal UTF-8 bytes 360 237 244 267 UTF-8 bytes as Latin-1 characters bytes ð <9F> ¤ · Hex UTF-16 Surrogates D83E DD37

    I got information on these characters, from an useful on-line UTF-8 tool, described in the last section of the post below :

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

    I must say that I did not pay attention, until now, to the Converter plugin, of @don-ho !!

    Seemingly, if you select one or some consecutive character(s) and use the option Plugins > Converter > ASCII -> HEX, it correctly writes the hexadecimal byte(s), needed to encode this/these character(s) in UTF8, or in ANSI for the 255-characters allowed block !

    IMPORTANT : Even if your current encoding is UCS-2 BE BOM or UCS-2 LE BOM, it still shows the hexadecimal bytes, used in an UTF-8 or an UTF-8 BOM file, to encode this/these characters :-( In any case, it’s best to avoid these two encodings because they cannot handle characters which are over the BMP, like your SHRUG symbol !

    For instance, in an UTF-8 file, the selection of the string 🤷Aツé and then the option Plugins > Converter > ASCII -> HEX gives the result F09FA4B741E38384C3A9, because :

    The 🤷 character is coded with the 4-bytes UTF-8 sequence F09FA4B7

    The A character is coded with the 1-byte UTF-8 sequence 41

    The character is coded with the 3-bytes UTF-8 sequence E38384

    The é character is coded with the 2-bytes UTF-8 sequence C3A9

    And, in an ANSI file, the selection of the string , with the option Plugins > Converter > ASCII -> HEX gives the result 41E9 because :

    The A character is coded with the 1-byte ANSI sequence 41

    The é character is coded with the 1-byte ANSI sequence E9

    In the same way, if you select one or some consecutive hexadecimal bytes and use the option Plugins > Converter > HEX -> ASCII, it correctly writes the corresponding glyphs of this/these character(s), produced by the current font, in an UTF-8 or ANSI file. For instance, selecting the sequence F09FA4B741E38384C3A9, does give back our 4chars string 🤷Aツé

    Now, regarding the different Windows input methods, I strongly advice you to read this post, first, where I recapitulate all the different Windows input methods :

    https://community.notepad-plus-plus.org/topic/18903/regex-misidentifying-foreign-characters/6

    And, in its last section, looks the reference to a nice monospaced font, which correctly writes almost the majority of all the Unicode characters, even those which are outside the BMP

    As said in that post, after modifying the registry ( be careful ! ), you may directly insert, for instance, the KATAKANA letter TU, following these steps :

    Hold down the Alt key and, successively :

    Hit the + key, on the numeric keypad

    Hit the 3 key, on the numeric keypad

    Hit the 0 key, on the numeric keypad

    Hit the C key, on the main keyboard

    Hit the 4 key , on the numeric keypad

    Release the Alt key

    => Immediately, the character should be inserted at cursor location ;-))

    However, note that the Shrug symbol cannot be inserted, even using this powerful input method, because its code-point 1F937 is greater than \x{FFFF} ! You’ll have to use, in that case, an on-line tool to get these characters, from their Unicode code-point, in the range \x{10000} - \x{10FFFF}, as, for instance, the UTF-8 tool described above !

    Best Regards,

    guy038

    P.S. : I started writing this post, before the @peterjones reply. Also, some parts may be redundant ;-))

  • Functionlist for HLSL

    1
    0 Votes
    1 Posts
    299 Views
    No one has replied
  • Text file is showing null null

    1
    0 Votes
    1 Posts
    243 Views
    No one has replied
  • Macro and select tutorial

    1
    0 Votes
    1 Posts
    181 Views
    No one has replied
  • Can I "Find / Replace all" only apply to selected?

    9
    0 Votes
    9 Posts
    340 Views
    Alan KilbornA

    @gurikbal-singh said in Can I "Find / Replace all" only apply to selected?:

    but it works for Multi-line search and replace perfectly.

    But that wasn’t the OP’s question. Please try to not give answers that are misleading.

  • Is there any plugin can make NPP realtime-auto-indent?

    16
    0 Votes
    16 Posts
    2k Views
    Michael VincentM

    @PeterJones
    @wjk199511140034
    @Michael-Vincent said in Is there any plugin can make NPP realtime-auto-indent?:

    Hopefully it’s only a temporary plugin and this is fixed

    Looks like the next version fixes this so my Perl Indent plugin won’t be needed.

    Yay!

  • Change shortkey configuration

    5
    0 Votes
    5 Posts
    319 Views
    Edificio Rascacielos TenerifeE

    Thanks. Understood

  • Sort numbers in ascending order with Regex

    6
    0 Votes
    6 Posts
    1k Views
    Bebee BebrtoB

    the idea, maybe, is to make all Edit Options to make replacement in all files, not just in one file.

  • First line replacement

    6
    0 Votes
    6 Posts
    3k Views
    GS MusicG

    Thanks guys. Both solutions worked fine. Thank you for your help.

  • Ctrl + Tab doesn't switch documents

    3
    0 Votes
    3 Posts
    2k Views
    Albert BihlerA

    Thanks to your comment I found the culprit. It’s “Multi PuTTY Manager”. If I close it Ctrl+Tab in Notepad++ works as desired. By the way Multi PuTTY Manager" also blocks Ctrl+Tab in Firefox.
    Thanks for helping!

  • Space Before and After a Equals (=) character?

    2
    0 Votes
    2 Posts
    645 Views
    PeterJonesP

    The user-defined-language settings will not automatically add spaces. However, you could search for \x20*=\x20* and replace with \x20=\x20 in regular expression mode. That will change any number of spaces (including zero) followed by = followed by any number of spaces (including zero) with exactly one space, exactly one equal, and exactly one space.

  • auto completition

    2
    0 Votes
    2 Posts
    258 Views
    PeterJonesP

    Yes – well, depending on what you mean by “on demand”. If my explanation doesn’t fully solve your problem, you will have to describe it better.

    In your Notepad++ installation folder (often c:\program files\Notepad++) there will be an autoCompletion folder with a bunch of XML files, one per language¹. You can add new auto-completion terms to that file². If you have a UDL³ that you’d like to have auto-completion for, you can create a new XML file in that folder that will hold the auto-completion definitions.

    see docs: https://npp-user-manual.org/docs/auto-completion/#create-auto-completion-definition-files Notepad++ tends to save configuration files as it exits if you’ve made any changes in the GUI. Thus, when manually editing this or any config file using Notepad++, follow the sequence: close all instances of Notepad++; open one single instance; edit the file; save; exit Notepad++; re-open. At this point, the changed settings should be in effect. user defined language: https://npp-user-manual.org/docs/user-defined-language-system/
  • mark and remove

    8
    0 Votes
    8 Posts
    901 Views
    Gulab BorkarG

    @guy038

    thanks

  • Removing duplicated lines out of log file.

    9
    0 Votes
    9 Posts
    2k Views
    Sarah DuongS

    @PeterJones If it is attached with instructions send questions here. This will help you understand the question, and support it correctly. Perhaps I have not found this post yet.

  • convert .txt file to pdf - missing last char

    4
    0 Votes
    4 Posts
    467 Views
    PeterJonesP

    If sodapdf.com is doing the conversion from .txt to .pdf, why do you think it’s a Notepad++ problem?

    If you can show that sodapdf.com works with a .txt file with more than 80 characters on a line that was created in some other application, but does not work with a .txt file with more than 80 characters on a line that was created in Notepad++, then we might be able to give some ideas. But if the same thing happens no matter what creates the >80-character text line, then you might want to ask the folks at sodapdf.

  • Hide/Unhide Non-Bookmarked Lines

    7
    0 Votes
    7 Posts
    6k Views
    Mike SmithM

    @Alan-Kilborn

    It seems like you could run your bookmarking operation, then do a “Inverse Bookmark” command, and then run the script @Ekopalypse provided…to get what you want?

    Yes, that’s a good idea! I did just that, and it hid everything I didn’t need to edit. Thank you.

    24000 things to examine and edit is a huge manual task.

    I don’t thing it’s something that can be automated though. The issue is that I have all the download links in one database (which I’m editing through Notepad++), and the files are stored on a seperate server. The task I am currently processing, is to randomize all filenames:

    https://www.example.com/74547854787fileone.zip https://www.example.com/56647979548filetwo.zip https://www.example.com/01324679462filethree.zip https://www.example.com/64647452105filefour.zip

    So not only do I need to complete the task of randomizing the filenames (A task I’m achieving using Bulk Rename Utility), I have to then ensure the download links are changed to represent the relevant filename.

  • Find&Replace pairs of capitalised words

    4
    1 Votes
    4 Posts
    389 Views
    Joaquin BuenoJ

    Thanks to both, @Ekopalypse and @guy038 :) :) :)

    Both codes worked like a charm.

    For anyone interested in these codes, @Ekopalypse 's code finds every space-separated pair of words starting with a capital letter , and @guy038 's code finds every space between words starting with a capital letter. Both were good for what I needed to do!

  • Colors from stylers.xml are wrong for JSON

    2
    1 Votes
    2 Posts
    303 Views
    raul1roR

    I also tried with other themes and same problem. Wrong colors.