Created
November 27, 2012 23:13
-
-
Save ayhansipahi/4157876 to your computer and use it in GitHub Desktop.
Fortran 77 Snippets for Sublime Text 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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