Hello,
I have a perl script in which I remove windows line endings.
$text =~ s/^^M?\n?//mg;
When I open this skript with SublimeText 3 the ^M is interpreted as a line break:
$text =~ s/^
?\n?//mg;
This breaks systax coloring and - much worse! - when I save the file it changes the regex. See the diff:
+ $text =~ s/^
+?\n?//mg;
Is there anything I can do to stop ST3 to interpret Windows line endings?
Thanks for Your help!
Sven