is there a way to save a file as .srt?
-
i am working on making subtitles for a friend, and couldnt find srt in the ‘Save as type:’ box when i save my file. any solutions that dont require me using that sketchy github plugin i found are greatly appreciated!!!
edit: i do apologise for any confusion caused by the sentence above, i should have been more careful with my wording. the github plugin that i was referring to specifically was Idecarufel’s SrtTools (which i cannot include a link for, given that i just made this account). i did not intend to sound bad-faith towards them, and simply wanted to avoid plugins since i am nowhere near competent enough to dig through the files and check for things. sorry!
-
couldnt find srt in the ‘Save as type:’ box when i save my file
Subtitle files (.srt) are not a language covered by Notepad++'s syntax highlighting. The filetypes (extensions) handled by default by Notepad++, and the filetypes (extensions) handled by a User Defined Language (UDL) are the only ones that show up in the Save As dialog. That said, you are not limited to saving with extensions from the drop down. If you type the name as
someFile.srt, then Notepad++ will save it assomeFile.srt, regardless of which dropdown selection is chosen at the time. That dropdown is there to help you, not to prevent you from choosing any extension you want for your file.any solutions that dont require me using that sketchy github plugin i found
If by “solution” you mean, “how do I save a file with an extension not in the dropdown list”, then yes, see previous paragraph.
If by “solution” you mean, “I want subtitle syntax highlighting to be automatically done by Notepad++ natively”, such a solution does not exist.
If by “solution” you mean, “I would like to do syntax highlighting on subtitle SRT files, but don’t mind if it’s a lexer plugin or a UDL” – presumably, there could be a plugin on GitHub or through the Plugins Admin, which would provide highlighting and/or other features; I don’t know, as I don’t remember any off the top of my head, and you provide no link. And, unfortunately, I don’t think SRT is really suited to a UDL, as there isn’t much in the way of keyword-based highlighting it can do. You could do one that colored
1 00:00:01,000 --> 00:00:04,000 Hello and welcome to this video. 2 00:00:04,500 --> 00:00:07,500 Today we are learning about SRT subtitle files.You could, I suppose, add
-->to the operator list. And if:and,are added as valid “number” characters, then the timestamps could be colored as numbers to stand out. But a UDL (alone) wouldn’t be able to do anything for counter indicator separate from the timestamps.sketchy github plugin i found
We have no idea what “sketchy github plugin” you found, nor why you think it’s sketchy. Is it something that’s in GitHub but not the Notepad++ Plugins Admin? That doesn’t mean it’s sketchy. If you provide a link, maybe someone could provide fact-based information, rather than just having your “sketchy” adjective for forming any basis of a reaction.
-
thank you for the swift reply, it was greatly informative!!
on the ‘sketchy github link part’ i was referring to Idecarufel’s SrtTools on github, which can be found here: https://github.com/ldecarufel/SrtTools
i called it sketchy due to it lacking stars and other such things found githubs little about sidebar thing, and being far too technologically incompetent to dig through the code and figure out if its anything malicious. ill probably follow your first suggestion, and ill edit my post to include the github link :) -
I didn’t dig very deep, but I did read that plugin’s README.
I would say it doesn’t likely add anything to the Save As dialog, or do syntax highlighting. It just looks like it can play with the timestamps and renumber the text blocks. Which is, I am sure, useful for those editing subtitle files. But it wouldn’t do syntax highlighting.
it lacking stars and other such things found githubs little about sidebar thing
My guess is that they don’t have much feedback because they’ve never posted about their plugin here, nor have they tried to release their plugin into PluginsAdmin. Which limits the reach of their plugin, unless they have other channels through which they are hyping and distributing their plugin.
My general conclusion on seeing a repo with no issues submitted is “no one is using it”. And I guess, that might be enough to make me think either, “I probably shouldn’t try it” (if I was only mildly curious); or, if I were really interested, “I should beta test it for them”.
-
@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!! :) -
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login