SA-MP Forums Archive
Sublime Text 3 .inc file syntax - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Sublime Text 3 .inc file syntax (/showthread.php?tid=591037)



Sublime Text 3 .inc file syntax - MP2 - 07.10.2015

I have ST3 set up with PAWN, and opening .pwn files is fine, it opens with the 'PAWN' syntax applied. However, .inc files on the other hand open with HTML syntax... I have .inc files set to open with ST3 (through Windows) and also have file association set in PAWN.sublime-settings:

Код:
{
    "extensions":
    [
        "pwn",
        "inc"
    ]
}
As I said, .pwn works but .inc does not.

I have set 'Open all files with this extension' as shown below and it doesn't do anything when I re-open the file:



Also, .inc files don't have the ST icon on them, while .pwn files do. Possibly related?


Re: Sublime Text 3 .inc file syntax - MP2 - 07.10.2015

I had a file called PAWN.sublime-settings with this in:

Код:
{
	"extensions":
	[
            "inc"
	]
}
Emptied the file and it works now.. strange.


Re: Sublime Text 3 .inc file syntax - MP2 - 08.10.2015

Well never mind, that didn't fix it. Sigh.

Any other ideas?


Re: Sublime Text 3 .inc file syntax - Chrillzen - 08.10.2015

lol noob


Re: Sublime Text 3 .inc file syntax - Sew_Sumi - 09.10.2015

I found with other editors that .inc is also used by C, so sometimes, it's over-riding the settings for the .PWN files because C comes before P.

Maybe remove the .inc extension from the C sections and other areas, to see if that makes a change.