Sublime Text 3 .inc file syntax
#1

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?
Reply
#2

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

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

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

Any other ideas?
Reply
#4

lol noob
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: