• Help to arrange text??

    3
    -1 Votes
    3 Posts
    197 Views
    ParkourfingerP

    @guy038 Thank you very much it worked!

  • Shaking effect in while writing in Arabic

    15
    1 Votes
    15 Posts
    2k Views
    jacktorenoJ

    @PeterJones Hello Peter, I just wanted to thank you again regarding the help with the issue here. I have been enjoying NP++ for a week now without any issues. No more dancing letters.

  • WinPE File Explorer not working

    5
    0 Votes
    5 Posts
    764 Views
    Jan BörschleinJ

    Yeah, I guess you are right, unfortunately.
    Do you know what Windows components are loaded?

  • Find letter + control characters combination

    2
    0 Votes
    2 Posts
    354 Views
    Alan KilbornA

    @June-Wang

    “Control characters”…hmmm.

    Well, as long as you’re sure that you know your data, and what you’re doing, you might have luck in Regular expression replacement where you set the Search mode that way.

    Then you could do:

    find: gf65n\xA7\xE2 <- note the \x before the A7 and E2
    repl: gf65nBlah
    mode: regular expression

    But this whole thing makes me a big nervous. :-)

    Since it appears you may not be working with true text data, perhaps a true hex editing program would be a better choice than Notepad++ for these manipulations.

  • How to collapse lines under a header?

    3
    0 Votes
    3 Posts
    1k Views
    A

    Wonderful! thank you so much that will make this way easier to keep orgenized.

  • Make an new empty line ever 7th line

    9
    0 Votes
    9 Posts
    1k Views
    guy038G

    Hi, @adam-larsson, @alan-kilborn, and All,

    @adam-larsson :

    If you do not tick the Wrap around option, it adds a blank line, every block of 7 non-empty lines from caret location till the very end of file

    If you tick the Wrap around option, it adds a blank line, every block of 7 non-empty lines, from beginning of file till the very end of file

    Alan, I understand your restriction regarding the \K feature. Luckily, thanks to @Uhf7, it will be possible to use, very soon, in a next release, the \K feature with the step by step replacement. Nice, isn’t it ?!

    BR

    guy038

  • Encryption works, but how to protect file from edits using key

    5
    0 Votes
    5 Posts
    3k Views
    dinkumoilD

    @Kavin-Sood

    There is an en-/decryption plugin for Notepad++ called NppCrypt. You can find it when looking into Plugins Admin. It is available for 32 bit and 64 bit versions of Notepad++.

    The plugin supports various encryption methods and is able to add an HMAC to authenticate the encrypted document. This way it is not possible to change the encrypted document anymore, its decryption will fail. That means you need backups of your encrypted documents.

    Set up in a desired way, the plugin is able to automatically decrypt encrypted documents when they are opened and to automatically encrypt them when they are saved.

    Important hint: If the plugin author updates the plugin (happens very rarely), the new version might fail to decrypt documents encrypted with an old version of the plugin. This already happened two times in the past.

  • Number of lines NP++ and Excel shows won't match

    12
    0 Votes
    12 Posts
    2k Views
    Michael VincentM

    @PeterJones said in Number of lines NP++ and Excel shows won't match:

    OTHER READERS: Please do not follow the example of blindly deleting quotes in a CSV to get the number of rows in a spreadsheet to match with the number of lines shown in a text editor

    YES, what he said. My “advice” above was more of a diagnosis than a course of treatment. The problem was probably quotes to capture newlines. I never meant that the fix was to remove the quotes! As @PeterJones says, this CHANGES your data!

    Cheers.

  • Function List not working for C# ver 7.9.3

    2
    0 Votes
    2 Posts
    180 Views
    PeterJonesP

    @Dave-Dolson ,

    Did you have a reason to just post a link to an old discussion? Because you said nothing, and we cannot read your mind.

    Good luck.

  • Insert (paste) text without overwriting text on the next line

    11
    0 Votes
    11 Posts
    3k Views
    Alan KilbornA

    @Matt-pointvicente

    Have you read the posts above?
    Again, a “block select” does not overwrite data.
    But sometimes it can appear like it is doing so.
    But if you look at it closely you’ll see that it is not overwriting anything.

    But I will agree that sometimes you don’t get the result you think you should, so you have to undo it, provide some blank lines and try the paste again.

    But really, the result you achieved you sometimes need, when pasting column data in other situations.
    So, you can’t have it “both ways”, it has to work the way it does so that the feature stays powerful.

  • need help : word replacement

    5
    0 Votes
    5 Posts
    270 Views
    Alan KilbornA

    @Terry-R said in need help : word replacement:

    That way you only need to change the word in 2 locations in the first field, instead of 5 times.

    Well, if changing it in multiple locations is a problem, maybe even eliminate having to do it twice! :-)

    (?s).*?\K(\bcar\b)(?=.+@@@)|@@@|(?=(?:.*?(?1)){4}).+\K(\z)

    But yes, this is a nice solution – the original one.
    In these types of solution, I often think of future readers that might come along with a similar need.
    Perhaps there is benefit in some explanation of how this one actually works is in order.

  • to go to the line when a width is reached

    4
    1 Votes
    4 Posts
    263 Views
    Pouemes44P

    super!
    great thanks Alan, that what i wanted
    thanks

  • 0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Jaacov-Molcho ,

    This is not a Java help forum. But your output text is lying: The ASCII value of א is: 1488 is factually incorrect. There is no ASCII codepoint for א, or anything other than the standard first 128 characters with the standard US English alphabet, numbers, punctuation, and control characters – anything that claims “the ASCII (codepoint) is greater than 127” is wrong. What you are showing in your Java is the Unicode codepoint of א, which is 1488, aka U+05D0. If you are programming in Java, there is no reason to be using encoding Windows-1255. Use a real Unicode encoding, like UTF-8, like you are in IntelliJ IDEA. If what you are really complaining about is that running the program from Notepad++ , and that you aren’t seeing the characters you think you should, are you sure that your output console is really set the way you think it is? Because while IntelliJ IDEA might properly set the encoding of its output window to utf8, maybe what you are using with Notepad++ for output (whether it is NppExec’s console, or a spawned cmd.exe window from Run > Run menu, or whatever) might not have the encoding set the way you think (chcp, npe_console o2 i2, …)

    As you can see, with my perl code set for UTF-8, outputting to the NppExec with the console settings set for UTF8 output encoding, everything is as I expect:
    a500e81d-93a7-4b12-85c5-b0b14a71685c-image.png

  • Scollbar contrast / color

    15
    0 Votes
    15 Posts
    1k Views
    Daspremont TerenceD

    Hello, thanks for your help, I tried to follow Michael-Vincent’s post but I didn’t understand anything^^

    I opted for WindowBlinds which is not free but I am very satisfied.
    14e1bb03-de43-4ddb-9476-c7fd6b8d7ea0-image.png

  • unable to extract two different numbers

    9
    0 Votes
    9 Posts
    378 Views
    Alan KilbornA

    @Jessica-Anderson

    anyhow I am happy with the solution of PeterJones,

    While you are happy with the provided solution, what happens next time? The people here aren’t going to solve you problems time after time. You need to read about, and understand how the solutions given you work so that next time perhaps you can solve your own problem.

    A great starting point is here:

    https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation

  • custom syntax highlighting

    2
    0 Votes
    2 Posts
    185 Views
    PeterJonesP

    @tezdal ,

    The UDL system doesn’t work well with non-latin scripts:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4688 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4742

    I doubt you will find a solution to your liking. Sorry.

    The UDL system is in desperate need of an overhaul, but no one has taken it on.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues?q=is%3Aissue+is%3Aopen+UDL
  • Mark the column by macro

    2
    0 Votes
    2 Posts
    295 Views
    PeterJonesP

    @Petr-Jaja ,

    Please is there some simper solution than X times repeat message 2306

    Sorry, not that I know of. The macro language is a simplistic language that just sends messages to the scintilla editor components for the active editor window, or sending GUI commands (activate menus, etc) to the Notepad++ GUI. It’s essentially recording keystrokes.

    Where can I find some description or manual for macros syntax in Notepad++?

    The official docs at https://npp-user-manual.org/docs/macros/ have a link to the config-file description for the macros section of shortcuts.xml, and that has a link to the detailed description from Scintilla for all the Scintilla messages.

    If you want to do something more complicated – especially if you want X and Y to be variables – then you will need one of the scripting plugins, which embeds the full features of your favorite programming language (Python, Lua, JavaScript, Perl, …) into the Notepad++ environment, so the programming language has direct access to the scintilla editors and the Notepad++ GUI. That makes loops or variables possible. Each of those refenced plugins has good documentation

  • Run until the end of file only runs once

    10
    0 Votes
    10 Posts
    2k Views
    guy038G

    Hello, @vishwas-bhide and All,

    So your language uses the Unicode DEVANAGARI script, in range U+0900 - U+097F below :

    https://www.unicode.org/charts/PDF/U0900.pdf

    And :

    - The **`॥`** character is *DEVANAGARI DOUBLE DANDA*, with code-point **`\x{0965}`** - The **`०`** character is *DEVANAGARI DIGIT ZERO*, with code-point`\x{0966}`** - The **`१`** character is *DEVANAGARI DIGIT ONE*, with code-point`\x{0967}`** - The **`२`** character is *DEVANAGARI DIGIT TWO*, with code-point`\x{0968}`** - The **`३`** character is *DEVANAGARI DIGIT THREE*, with code-point`\x{0969}`** - The **`४`** character is *DEVANAGARI DIGIT FOUR*, with code-point`\x{096A}`** - The **`५`** character is *DEVANAGARI DIGIT FIVE*, with code-point`\x{096B}`** - The **`६`** character is *DEVANAGARI DIGIT SIX*, with code-point`\x{096C}`** - The **`७`** character is *DEVANAGARI DIGIT SEVEN*, with code-point`\x{096D}`** - The **`८`** character is *DEVANAGARI DIGIT EIGHT*, with code-point`\x{096E}`** - The **`९`** character is *DEVANAGARI DIGIT NINE*, with code-point`\x{096F}`**

    Your initial S/R could be changed as :

    SEARCH ॥\h\d+\h॥\h(?!<br>)    OR    \x{0965}\h\d+\h\x{0965}\h(?!<br>)

    REPLACE $0<br>

    Two advantages :

    No need to capture something in a group as we grab the overall match with the $0 syntax, in replacement

    If the part ॥ digit ॥ is already followed with a space char and the string <br>, it will not add <br> a second time

    So, two cases can be considered :

    A) WITHOUT a macro :

    Open the Replace dialog ( Ctrl + H )

    SEARCH ॥\h\d+\h॥\h(?!<br>)    OR    \x{0965}\h\d+\h\x{0965}\h(?!<br>)

    REPLACE $0<br>

    Tick the Wrap option option

    Select the Regular expression search mode

    Click on the Replace All button, once ( anyway, a second click will not work ! )

    B) WITH a macro :

    Open the Replace dialog ( Ctrl + H )

    SEARCH ॥\h\d+\h॥\h(?!<br>)

    REPLACE $0<br>

    Tick the Wrap option option

    Select the Regular expression search mode

    Run the Macro Start Recording option ( Ctrl + Shift + R )

    Click on the Replace All button

    Close the Replace dialog ( ESC )

    Run the Macro Stop Recording option ( Ctrl + Shift + R )

    Run the Save Current Recorded Macro option

    Save it as, for instance, Addition of <br>

    Choose, preferably a shortcut for further easy process

    Click the OK button

    Close and re-start Notepad++

    Open your concerned file

    Now, whatever the option chosen :

    Macro > Addition of <br>

    Macro > Run a Macro Multiple Times > Addition of <br> > Run 1 times and a click on the Run button

    Macro > Addition of <br> > Run until the end of file and a click on the Run button

    => The <br> string is added to any ॥ digit ॥ string, ONLY once !

    Note that the Wrap around forces the regex engine to process file(s) from the very beginning to the very end !

    If you prefer to modify, directly, your active shortcuts.xml file, add the lines, below, right before the line </Macros>

    <Macro name="Addition of &lt;br&gt;" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="&#x0965;\h\d+\h&#x0965;\h(?!&lt;br&gt;)" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="$0&lt;br&gt;" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> </Macro>

    Best Regards,

    guy038

  • Session lost after Windows 10 update, recovery options?

    10
    0 Votes
    10 Posts
    479 Views
    Alan KilbornA

    @Ekopalypse said in Session lost after Windows 10 update, recovery options?:

    What data loss are you referring to?

    Well, OP said he lost his existing session in favor of some presumably empty one.
    The presumption is that he had a session of a bunch of unsaved, unnamed, temporary files.
    In such a case, which is one that I do not operate under myself, haven’t you lost track of all of your “files”?

    As you said, you might find them in the backup directory…

    Ah, okay, I later see OP said:

    All my open files were saved

    So that’s a good thing.
    But this is probably not how most people that ask such a question as the OP’s original actually work.

  • Not Loading on windows 10 with the 20H2 update

    5
    0 Votes
    5 Posts
    433 Views
    mere-humanM

    I use Notepad++ 7.9.4 (32-bit) on Windows 10 20H2 just fine.