Created
November 27, 2016 18:37
-
-
Save prantu/05b6cd9cb148ba9a6064c3891017ff3a to your computer and use it in GitHub Desktop.
A custom build system to run Fortran (.f77, .f95, .f) on Sublime Text Editor with Gfortran compiler
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
{ | |
"cmd": "gfortran ${file} -o ${file_base_name}", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"selector": "source.modern-fortran, source.fixedform-fortran", | |
"variants": [ | |
{ | |
"cmd": ["start", "cmd", "/k", "$file_base_name"], | |
"shell": true, | |
"name": "Run" | |
}, | |
{ | |
"cmd": "type ${file_name} & echo. & echo. & echo COMPILATION COMPLETE. & echo RUNNING... & ${file_base_name}", | |
"shell": true, | |
"name": "Code + Result" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download Gfortran compiler for windows from here
Download Sublime Text 3 from here
Add gfortran binary folder to Environment Variables
Add this build system in Sublime, and DONE!