• Add Charater to everyline that begins with

    3
    2 Votes
    3 Posts
    172 Views
    Clyde ParkerC

    works pretty good thank you sir!

  • Replace text inside double quotes

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Clyde-Parker said in Replace text inside double quotes:

    Thanks for your help, i was actually looking for the regex to replace text inside quotes but i can’t do every single word working with huge files

    Yeah, you’re still not giving us enough to go on. The regex ".*?" will match text inside a quote, or ^".*?" will match only text inside a quote that begins a line, or (?<^").*?(?=") will match the text inside the quotes at the start of a line, without matching the quote marks themselves. But there is no easy way to make a map of word->replacement in the REPLACE portion of the regex.

    if you’ve got a list of 5-10 words that you HAVE, and the associated words that you WANT to convert them to, then it’s not too difficult to produce a regex that will do it. But if you’ve got hundreds or thousands of words that you want to map from one to another, you won’t be able to do it in a single manual regex.

    That said, our resident regex gurus have some tricks up their sleeves. So if you said you were able to put the list of HAVE => WANT words at the end of the file, and weren’t picky about the format for that list, someone might be able to chime in with a way to get that to miraculously transform it.

    Personally, while I find such solutions academically interesting the first time I see them, they have their limitations (if the main text file gets too long, the magic regex cannot extend all the way from the real text to the mapping at the bottom).

    Really, if I were doing this, once it got to this stage of a huge list of replacement maps, I would just write a command-line script to do it in my favorite programming language; but that’s off-topic here.

    But if I were going to solve this “inside” Notepad++, I would pull out a plugin like PythonScript: open the text to be edited in the “main” editor view and a separate file that would have the HAVE => WANT pairs in some easy-to-parse format (like HAVE => WANT or HAVE,WANT or HAVE [tab] WANT) and write some python code which would process the mapping file view line-by-line, then run the search-and-replace on the main editor view, and loop through all the changes you want to make. I’m actually pretty sure someone has shown such code in the forum before – maybe even me. But searching the forum for “PythonScript map” or some such will produce a lot of results that you’d have to wade through to find – and you might have to try variations, because everyone phrases it differently.

    Again, I highly recommend reading the advice I gave above, and trying to add enough information that someone could meaningfully give a detailed solution, rather than just my high-level “if you’re lucky, it might be doable with fancy regex, but we cannot know until you give us more detail; or it could also be done through scripting, but how exactly that will look might depend on what your data is really like, and what format your list of replacements is in”.

  • Finding multiple words inside extra quotes

    18
    0 Votes
    18 Posts
    1k Views
    TexasKCFanT

    @guy038 This solution is perfect and returns all the errors I am looking for. Thank you!

  • How does Notepad++ Manage to display all Characters and Emojis

    4
    0 Votes
    4 Posts
    7k Views
    guy038G

    Hello, @Martin-furek, @peterjones, @alan-kilborn and All,

    You may be interested by this post :

    https://community.notepad-plus-plus.org/topic/19990/regexp-fails-to-match-utf-8-characters/14

    and by this site :

    https://emojipedia.org/

    Particularly, the points :

    https://emojipedia.org/man-superhero/

    https://emojipedia.org/emoji-11.0/

    On the other hand, from this site    https://www.fontyukle.net/ara.php?ara=Segoe+UI   you could download a fairly new versions of all fonts of the Segoe UI family, listed below, with their main characteristics :

    •----------------------------------------•------------------•--------------------------------------•---------•------------•----------•------------• | Segoe UI font variations | Microsoft Name | Font Names in "Fontyukle" archives | Version | Characters | Glyphs | Kern pairs | •----------------------------------------•------------------•--------------------------------------•---------•------------•----------•------------• | Segoe UI Black (TrueType) | seguibl.ttf | Segoe UI Black.TTF | 2.02 | 2,191 | 2,443 | 2,638 | | Segoe UI Black Italic (TrueType) | seguibli.ttf | Segoe UI Black Italic.TTF | 2.02 | 2,191 | 2,544 | 8,467 | | | | | | | | | | Segoe UI (TrueType) | segoeui.ttf | Segoe UI.TTF | 5.62 | 3,952 | 5,344 | 8,292 | | Segoe UI Bold (TrueType) | segoeuib.ttf | Segoe UI Gras.ttf | 5.60 | 3,900 | 5,219 | 8,319 | | Segoe UI Bold Italic (TrueType) | segoeuiz.ttf | Segoe UI Gras Italique.ttf | 5.30 | 2,826 | 3,377 | 8,613 | | Segoe UI Italic (TrueType) | segoeuii.ttf | Segoe UI Italique.ttf | 5.30 | 2,826 | 3,377 | 5,739 | | | | | | | | | | Segoe UI Emoji (TrueType) | seguiemj.ttf | Segoe UI Emoji.TTF | 1.29 | 1,962 | 12,189 | 1,394 | | | | | | | | | | Segoe UI Historic (TrueType) | seguihis.ttf | Segoe UI Historic.TTF | 1.03 | 3,658 | 4,737 | 1,352 | | | | | | | | | | Segoe UI Light (TrueType) | segoeuil.ttf | Segoe UI Light.ttf | 5.60 | 3,902 | 5,231 | 5,503 | | Segoe UI Light Italic (TrueType) | seguili.ttf | Segoe UI Light Italic.ttf | 5.30 | 2,826 | 3,389 | 8,388 | | | | | | | | | | Segoe UI Semibold (TrueType) | seguisb.ttf | Segoe UI Semibold.TTF | 5.62 | 3,948 | 5,271 | 8,291 | | Segoe UI Semibold Italic (TrueType) | seguisbi.ttf | Segoe UI Semibold Italic.TTF | 5.32 | 2,874 | 3,437 | 5,209 | | | | | | | | | | Segoe UI Semilight (TrueType) | segoeuisl.ttf | Segoe UI Semilight.TTF | 5.62 | 3,950 | 5,219 | 8,293 | | Segoe UI Semilight Italic (TrueType) | seguisli.ttf | Segoe UI Semilight Italic.ttf | 5,30 | 2,826 | 3,389 | 8,338 | | | | | | | | | | Segoe UI Symbol (TrueType) | seguisym.ttf | Segoe UI Symbol.ttf | 6.23 | 7,362 | 9,209 | 1,361 | •----------------------------------------•------------------•--------------------------------------•---------•------------•----------•------------•

    Best Regards,

    guy038

  • Issues with dark style

    2
    0 Votes
    2 Posts
    178 Views
    EkopalypseE

    @Andrew-Truckle

    I assume this is an issue with the lexer and not the theme.
    Which lexer, aka the language like html, c++, perl …, and which theme are you using?

  • Change Font size

    3
    0 Votes
    3 Posts
    307 Views
    PeterJonesP

    I said in Change Font size:

    it’s either Ctrl+/ or Ctrl+\ on the numeric keypad

    I was unzooming today, and suddenly remembered making this comment; so I checked, and confirmed I hadn’t yet clarified that. Sorry.

    So for clarify for future readers, hold down the Ctrl key and then press the / from the numeric keypad (the keypad doesn’t have a \, so that’s not possible). Notepad++ shows that shortcut as Ctrl+Num / to make it clear that it’s the / on the numeric keypad (and I think that’s a fairly standard nomenclature).
    29d75c11-e107-4c8d-b35c-31466657c378-image.png

  • Disabled due to Store Policies error code

    5
    0 Votes
    5 Posts
    1k Views
    EkopalypseE

    @Moch-Aqib

    You have installed a forked version from the Windows Store which is NOT the official one. As far as I know, the store does not allow
    to have plugins loaded and other restrictions like the one you posted.
    If you want to use npp without these restrictions, download it from the official site here.

  • How to change character spacing?

    5
    0 Votes
    5 Posts
    4k Views
    prahladmifourP

    Hello,@Mazilla-Zim
    Please try these information, To How to change character spacing?

    To change the line spacing go to Settings → Style Configurator.

    On the left select Global Styles under Language then Brace Highlight Style under Style and then change the font size.

    I hope this information will be useful to you.
    Thank you.

  • Session Manager Load Crashing Notepad++

    2
    0 Votes
    2 Posts
    195 Views
    PeterJonesP

    @Mitchell-Ha ,

    Sorry. I could not reproduce it. It works for me.

    ----

    Why such a short reply? Because you didn’t tell us enough to be able to reproduce your problem, or because I tried what you described and got the results I expected. If you give us more information, we might be able to help more. Especially important are the ? menu’s Debug Info contents, a thorough description of the steps necessary to reproduce your problem, example text highlighted using the </> button or Markdown syntax, and possibly a screenshot of the problem (if you think it will help clarify the problem; use Windows’ Snip & Sketch or Alt+PrtScrn to capture the image, and Ctrl+V to paste it in your post).

  • automatic consecutive numbering

    12
    0 Votes
    12 Posts
    789 Views
    Andreas TröschA

    Hey guys!

    It was all good with the first script. I made a mistake by myself. You didn’t misunderstand what I was looking for. English is anyway not my native language so its more likely that I couldn’t explain it correctly. :)

    You really helped me and I can proceed with my orchestral template script!

    Thanks again.

  • Some hotkeys combination changed my typing

    3
    0 Votes
    3 Posts
    258 Views
    Grigore IG

    Thank you!
    Resolved!

  • invisible characters make difficulties -- when searching

    15
    0 Votes
    15 Posts
    625 Views
    mere-humanM

    Could someone create a corresponding issue with the suggested options, please?
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues

  • Can find this in page search, but not file search.

    2
    0 Votes
    2 Posts
    164 Views
    Sordrin NetworkS

    nm, figured it out I think.

    I was using a new txt doc to copy the content to be searched for, but the content is in yml files, and seems to be formatted differently…or something. After searching for content copied from yml file, it was able to find it…

  • Find&replace, RegEx, \10

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @Gergely-Apró ,

    The answers you have received are good.

    If you would like more documentation on this, the official Notepad++ docs talk about the substitution expressions here.

    Notepad++ uses what’s known as the “Boost engine” (currently v1.70) for handling the regular expressions, and that has its substitution documentation here

  • Auto indent

    3
    0 Votes
    3 Posts
    10k Views
    Alan KilbornA

    @Justin-Gaughan said in Auto indent:

    and it’s not auto indenting

    It would maybe help if you said something about your expectation for auto-indenting, if @PeterJones 's explanation does not satisfy.

  • Session of connection expired

    3
    0 Votes
    3 Posts
    327 Views
    Martin BergM

    Thank you for reply.

  • Urls/hiperlinks

    3
    0 Votes
    3 Posts
    239 Views
    Alan KilbornA

    @Luiza-Henriques

    Perhaps it would help if you would fully show the text behind your Preferences window? As from what I can see of it, EVERYTHING is underlined and that is not right.

    Links should be enabled by default, without you having to change any settings.

  • Freeze when switching tabs with selected text.

    2
    0 Votes
    2 Posts
    715 Views
    EkopalypseE

    @VAVoices

    Does this also happen if you are using npp without plugins installed? Can be tested by using the -noPlugin command line switch.

  • Win 7: Connect file-extensions with NP 7.9.2

    7
    0 Votes
    7 Posts
    704 Views
    Pierre de la VerreP

    99% solved, final resume:

    As usual, there where different issues, complementing each other - from the software and from me …

    the current user has no admin-rights, so there is the usual problem of admin versus user there was the 32bit of NP++ installed; the update to 64bit did not reset all registry-settings of 32bit I checked the HKLM-settings and thought that this will overwrite the user-settings: my fault, existing user settings stayed alive there where user settings for “.re” which linked to “re_auto_file” which linked to inactive x86-start-commands

    Now I cleaned up all x86-values to current links, and this enabled the command “Open with … - select Standard application …” again. Now a double-click on .VVA and .RE opens it with NP++

    The last “1% cosmetic unsolved” for both file types is that the icon in Explorer is smaller than the standard icon and the file-description is not “Notepad++ Document”.

    Thanks to all posters for advice!

  • search and highlight 2 or more words with different colors

    12
    0 Votes
    12 Posts
    1k Views
    Alan KilbornA

    @gstavi said in search and highlight 2 or more words with different colors:

    In what way does this improve over right click -> Style token?

    It really doesn’t. :-)
    Except that you don’t have to find an occurrence (by hand or search) of your “token” first, in order to rclick it.
    The script is really just a demo that someone could build something related upon.
    I can’t see someone typing all those “tokens” very often…

    It really makes way more sense to use a UDL for such a purpose (OP’s original “log analysis”). And that was my first suggestion to OP.

    But everyone has their own workflow.
    And their own likes, dislikes, and "I want"s.