Skip to content

Instantly share code, notes, and snippets.

@ayhansipahi
Created November 27, 2012 23:13
Show Gist options
  • Select an option

  • Save ayhansipahi/4157876 to your computer and use it in GitHub Desktop.

Select an option

Save ayhansipahi/4157876 to your computer and use it in GitHub Desktop.
Fortran 77 Snippets for Sublime Text 2
<!-- comment.sublime-snippet -->
<snippet>
<content><![CDATA[
C -----------------------------------
C $1
C -----------------------------------
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>comment</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.fortran</scope>
</snippet>
<!-- function.sublime-snippet -->
<snippet>
<content><![CDATA[
${1:real*8} function ${2:NAME}(x)
implicit none
${1:real*8} x
${2:NAME} = ${3:Your function}
return
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>function</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.fortran</scope>
</snippet>
<!-- program.sublime-snippet -->
<snippet>
<content><![CDATA[
program ${1:PROGRAM_NAME}
implicit none
$2
stop
end
$3
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>program</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.fortran</scope>
</snippet>
<!-- subroutine.sublime-snippet -->
<snippet>
<content><![CDATA[
subroutine ${1:NAME}(${2:PARAMETERS})
$3
end
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>subroutine</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.fortran</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment