Skip to content

Instantly share code, notes, and snippets.

@guziy
Created July 27, 2015 15:06
Show Gist options
  • Save guziy/147067724cbc6b451a45 to your computer and use it in GitHub Desktop.
Save guziy/147067724cbc6b451a45 to your computer and use it in GitHub Desktop.
# Example of the customization for the fortran highlighting
# To highlight fortran in GEM model
path = require 'path'
atom.workspace.observeTextEditors (editor) ->
if path.extname(editor.getPath()) in [".ftn", ".ftn90", ".cdk", ".cdk90", ".f"]
editor.setGrammar(atom.grammars.grammarForScopeName('source.fortran.modern'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment