Sublime Forum

[Solved] Perl .cgi script gets opened with Ruby syntax

#1

Hi,

When I open .cgi (Perl) script, it somehow gets treated as a Ruby script. How can I fix this? I seem to remember having this issue with Version 2 when I first started using it, but I can’t remember what I did to fix it (I’m using v3 now, which is friggin awesome!!!)

Cheers

Andy

0 Likes

#2

with a .cgi file open:
View menu -> Syntax -> Open all with current extension as... -> Perl

2 Likes

#3

While you are editing a CGI file, select View > Syntax > Open all with current extension as... from the menu and select the appropriate syntax. That will permanently make Sublime use that syntax for the file extension instead of the default.

2 Likes

#4

Awesome! Thanks both of you for that super quick reply! That works perfectly :slightly_smiling:

0 Likes