• 0 Votes
    2 Posts
    567 Views
    supasillyassS

    @jacko-png You need to disable DirectWrite to directly use those fonts, but Cascadia Mono (or Cascadia Code with programming ligatures [if DirectWrite is enabled]) will still look much better.

  • How to stop searching or replacing after a string?

    24
    1 Votes
    24 Posts
    2k Views
    mkupperM

    @dr-ramaanand I think the people on regex101 are using ChatGPT or other artificial intelligence applications to generate regular expressions.

    The expressions you get from regex101 are extremely difficult to follow do not come with any explanation of how the logic works or why certain choices were made. It’s likely that the regex101 people also have little to no idea of what the expressions do.

    That’s a large part of why using ChatGPT or other artificial intelligence applications is banned on this forum. Ideally, we call can learn from the answers we see posted on this forum.

    As I posted earlier, it would be much better for you to so stick with things you know and understand well. It’s ok to push the limits a little at times as you can learn from those. Trying to make sense of what looks like AI generated content is a waste of time.

  • Can I change how control characters are displayed?

    3
    1 Votes
    3 Posts
    331 Views
    leevih123L

    @Coises Hmm, to my knowledge the first screenshot used the exact same file as I did and just opened it in notepad, but I’ll look into that. Thank you for your help!

  • Help REPLACING content with incremental order (by +1)

    7
    1 Votes
    7 Posts
    641 Views
    Joel RodriguesJ

    @Coises

    WOW! Thank you so much!!!
    It worked beautifully!

    btw, I didn´t know your plugin so far. Thank you for sharing it for the public.

    best regards

    JR

  • how to set the font in find and replace boxes to monospace?

    2
    1 Votes
    2 Posts
    278 Views
    CoisesC

    @Ryzen-Virtual said in how to set the font in find and replace boxes to monospace?:

    It’s getting really annoying trying to write regex with a proportional font or copy pasting from the code.

    Settings | Preferences… | Searching:
    check Use Monospaced font in Find dialog.

  • FAQ Says to crosslink issues, But No Reputation?

    3
    1 Votes
    3 Posts
    192 Views
  • 0 Votes
    5 Posts
    2k Views
    CoisesC

    @Hellena-Crainicu said in Is it possible to add styles and fonts in txt files, like in Ms Word (docx)?:

    I want to know if it is possible to add styles and fonts in txt files, like in Ms Word (docx)?

    For example, I want to add BOLD, ITALIC and Color, but without formatting the text in html or another language. I mean, I don’t want to add tags like <strong> </strong> or <i> , etc

    Short answer: It is not possible.

    Longer answer:

    It is not possible, because what you would have would no longer be a plain text file. Plain text has no notion of formatting aside from a few control characters which have (relatively) agreed-upon meanings: mainly tabs and end-of-line characters. Aside from that, it’s just a stream of character codes, interpreted according to either a code page or a Unicode standard.

    (In principle, I suppose someone could define a “code page” that included control characters for color, bold, italic, font assignment and so on. No existing software would know how to interpret it, though, and most people would agree it was no longer “plain text.”)

    Files like docx have tags (or the equivalent of tags); it’s just that the program which displays and edits them interprets those tags and hides them so you see their effect instead of the tags themselves. It gives a WYSIWYG (what you see is what you get) experience, but that’s due to the editing application, not the file type.

    Contrast this with html, which you usually edit in a text editor but display in a web browser. You’re aware of the tags when you create html, but viewers don’t see them or think about them.

    Consider the form in which we type these posts. We can have italics and bold in our posts, but that’s because the forum software displays the text that way based on a simple form of tags (asterisks for italic, doubled asterisks for bold, square brackets followed by parentheses for links, and so on). We edit in plain text.

    So, no software will display colors, bold, italics and the like without some sort of tags. The tags can be so simple (markdown, like these posts) that you can easily read and write them in a text editor, or so deeply encoded (pdf) that they can neither be displayed nor edited without software specifically designed for them. But they will have to be there.

  • How to find copy and replace "quoted text" from one text file to another

    31
    0 Votes
    31 Posts
    3k Views
    Mark OlsonM

    I’m glad the OP was able to find a solution, and I appreciate the spirit of patience, exploration and iterative improvement that they and everyone else involved in the discussion exhibited throughout this whole process. I have nothing but good things to say about the OP’s attitude, but I still want to make this observation in case they are interested in further improving upon the solution:

    While 1.5 seconds to process several thousand lines of code may seem fast, the script I posted above processes several hundred thousand lines of JSON in less than a second.

    I am saying this because I believe that the OP has the personality traits of a successful programmer, and it is absolutely within their power, if they believe it is worthwhile, to learn a scripting solution that would provide better performance.

  • Function List with Bash scripts not fully populating

    12
    0 Votes
    12 Posts
    996 Views
    F

    Ah, ok thanks. I am using a newer version, but I use the portable version and keep installing over previous installs. I wondered why the regex changes I was making were having no impact,

  • How to use SCI_DOCUMENT*START*END via button?

    3
    0 Votes
    3 Posts
    220 Views
    Dean-CorsoD

    @PeterJones

    Coolio! Thanks for that info. So I didn’t know what I can also use my macros with that Customize Toolbar plugin but it works great. Another new helpfully information. Thanks again!

  • Where is Config.xml located

    3
    0 Votes
    3 Posts
    435 Views
    Gary WineyG

    Thank you very much.

  • How to find and dock Search Results window at bottom of page

    3
    0 Votes
    3 Posts
    1k Views
    Gary WineyG

    Thank you Terry R, updating the Config.xml file did the trick.

  • Customize Toolbar - Update issue for grayed menus

    1
    1 Votes
    1 Posts
    219 Views
    No one has replied
  • Notepad++ 8.6: user extensions not saved

    3
    0 Votes
    3 Posts
    323 Views
    PeterJonesP

    @Norman-Eisenherz , @Brad-Stone ,

    it is fixed in the v8.6.1 Release Candidate available from the announcement thread.
    See point#3 in the announcement: it was a “regression” in v8.6 (which meant it was working in v8.5.8 then accidentally broken in v8.6) and is now fixed in v8.6.1.

  • 0 Votes
    19 Posts
    1k Views
    Hellena CrainicuH

    @guy038 happy new year, all notepad++ team !! The best editor on earth !

  • how to do mass replacement in many files?

    2
    0 Votes
    2 Posts
    289 Views
    PeterJonesP

    @Cindy-Cindy said in how to do mass replacement in many files?:

    Mail Merge

    Notepad++ does not have a mail merge feature. Using a scripting plugin like PythonScript, it can be implemented. Just search this forum for mail merge or mailmerge and you should find an implementation provided.

  • How to run a temporary marked file with an external app?

    6
    0 Votes
    6 Posts
    593 Views
    Dean-CorsoD

    @Alan-Kilborn

    Yes I tries that plugin TakeNotes too but in this case I only can change my temp tab to a saved tab (save as note) what I don’t want or I can just create a new note tab and need to copy & paste the content of my temp tab into the note tab press save button and run it then with any external app I want. All in all it’s almost same like to save the file manually and just too much detour operations = no good & liquid running workflow for me. So to answer your question, the plugin is not what I’m looking for too, unfortunately. But otherwise it’s OK when I just work with those note files (when I need it) to save them directly into a custom folder. Maybe not the best solution but better than nothing. Thanks again for that tip Alan.

  • How to normalize fancy Unicode text back to regular text?

    27
    0 Votes
    27 Posts
    4k Views
    PeterJonesP

    @Dean-Corso ,

    If your PythonScript console prompt is still ... instead of >>>, you will need to enter a blank line (no whitespace) to tell the console to end the loop. It won’t run the loop until you do.

  • can i ask for help

    3
    1 Votes
    3 Posts
    211 Views
    PeterJonesP

    @Lupus ,

    If you are in SEARCH MODE = Regular Expression, then the syntax you showed would probably have worked in certain cases. Or use .*? in the middle to make it less greedy. Or use \d+ in the middle to only allow integers (as @Mark-Olson said as I was typing).

    But you were basically there.