alohaas / language-nunjucks

Syntax highlighting for nunjucks templates in atom.
MIT License
42 stars 13 forks source link

the file type extension #27

Closed jxintang closed 6 years ago

jxintang commented 7 years ago

since my nunjucks file type is *.tpl, so i have to change the filetypes in grammers/(nunjucks templates).cson manually. could you consider adding more filetypes?

'fileTypes': [
  'nunjucks'
  'Nunjucks'
  'njk'
  'tpl'
]
puranjayjain commented 7 years ago

@jxintang we support these file types *.nunjucks, *.Nunjucks, *.njk located here https://github.com/alohaas/language-nunjucks/blob/master/grammars/html%20(nunjucks%20templates).cson#L1 with the first two being the official ones and the last one due to popular community adaption. I am not aware of the *.tpl extension.

So I would like to ask you is it an official or a community extension, if so can you give me a reference to it? Any other relevant information or discussion is absolutely welcome

revelt commented 6 years ago

I agree, .tpl is non-standard. Out of curiosity, @jxintang why do you use this extension, instead of usual-ones?

ftm commented 6 years ago

.tpl seems like a very generic file extension, I don't think having it automatically recognised as a Nunjucks file would be a good idea so I'm going to close the issue.

However you can add your own without editing the package, find out here

alohaas commented 6 years ago

Thanks @frasertmay.