Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • M

      is there a way to save a file as .srt?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · saving files srt
      6
      0 Votes
      6 Posts
      35 Views
      CoisesC
      @Midnitecata said: @PeterJones thank you for your help, ill probably steer clear of it just out of caution, but i might look into it further should the tedious formatting inconvenience me enough to learn how to spot malicious code! thanks again!! :) Just a side note to this discussion: While you certainly can manipulate *.srt files in Notepad++ (and I do on occasion), for most purposes the free and open source program Subtitle Edit (found here on GitHub) is much easier to use. It has many functions for doing things like shifting times, identifying likely errors, and so on. Before working too hard to find a way to do something with a subtitle file in Notepad++, I recommend checking first to see if Subtitle Edit already knows how to do it.
    • B

      Code is not working

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      108 Views
      guy038G
      Hello, @blake-g.-barrington, @peterjones, @coises and All, Here is my version to get duplicate lines, separated by any number of lines ( whatever they are : true empty lines, blank lines or lines with text ), even zero line : MARK (?-si)^(.+)(?=(.*\R)+\1$) As said by @Peterjones, and after some tests, this kind of regex get into trouble when the bunch of lines, between two duplicate lines, exceeds 15,000 empty lines about ! Now, Let’s suppose you create this text file : first 0002 0003 0004 0005 .... .... .... 9997 9998 9999 10000 first Then the (?-si)^(.+)(?=(.*\R)+\1$) regex returns : Correct result until the number of the in-between lines does not exceed 1,600, with the message 1 match in entire file Correct result until the number of the in-between lines does not exceed 12,000, although the error message Find Invalid Regular Expression ( So F.I.R.E. !! ) occurs ! NO result at all if the number of lines is over 12,000 lines, with, of course, the error message Find Invalid Regular Expression Best Regards, guy038 P.S. : I should add that my Windows11 laptop has 32 Gb of memory !
    • donhoD

      Notepad++ release 8.9.8

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      16
      6 Votes
      16 Posts
      4k Views
      PeterJonesP
      @Kevin-Moran , As @xomx said in this Issue#18315 comment, he was not able to reproduce the problem (*). Since there is an issue (even though it’s currently closed), would you be able to go to that issue, and give an exact sequence of steps (from the initial launch of Notepad++ through to the second and third time that the warning pops up even with having answered Always load …), including your full ?-menu > Debug Info, and the session.xml that is being loaded (you can change paths in the session to things like c:\path\to\file1.json and \\hostname\sharename\path\to\file2.cpp if your filenames or paths hold information that you need to redact. Another important question: if instead of your normal workflow, if you open Notepad++, click Always load…, then exit Notepad++ immediately and restart, does it save the answer? If you have the ability, replying in [issue #18315](this Issue#18315 comment](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/18315) might be best (IMO) at this point; but if you don’t have or cannot create an account for GitHub, you can reply here. (It just buries other things in the Release Announcement threads if it dives into debugging a specific problem.) *: unsaid in that Issue: I had also tried to replicate it, and could not. As soon as I answer ALWAYS in a given instance of Notepad++, it stops pestering me, no matter how many times I reload a file from the network or from my local drive, or how many times I manually open a session file from the network or from my local drive. That’s why it’s so important to give the exact sequence of events you use to encounter the problem, with as many details as you can. Because until someone can replicate it, the problem likely cannot be found or fixed.
    • Carlos SánchezC

      [New plugin] Smart Math

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      5
      1 Votes
      5 Posts
      771 Views
      Vitalii DovganV
      The syntax file can be created by means of user-defined language. But how to apply this user-defined language automatically when Smart Math is enabled for the current file/document? OK, sorted it out: call NPPM_GETNBUSERLANG first to get the number of UDLs; then iterate through all the UDLs and call GetMenuStringW; once the menu item string matches my UDL name, I’ve identified my UDL menu id; after that, call NPPM_MENUCOMMAND with the obtained UDL menu id. Here is an example withUDL applied: [image: 1788696158249-d17e9134-3e1a-4b20-b7e9-62b16dbc4eff-image.jpeg] It’s a pity that I can’t make the keyword colors (such as function colors) to be dependent on the active color theme/style. I mean, for dark color themes these keywords in blue look too dark, so the color must be changed for dark themes.