Closed guziy closed 9 years ago
You can set custom file extensions for any language in Atom by modifying your init.coffee file as discussed here. For your case try
init.coffee
path = require 'path' atom.workspace.observeTextEditors (editor) -> if path.extname(editor.getPath()) in [".ftn", ".ftn90", ".cdk"] editor.setGrammar(atom.grammars.grammarForScopeName('source.fortran.modern'))
Thank you very much Tom:
It works very nicely.
Cheers
You can set custom file extensions for any language in Atom by modifying your
init.coffee
file as discussed here. For your case try