Modern-Fortran is a Sublime Text language syntax for highlighting of Fortran code. It highlights modern Fortran (Fortran 90 and newer) and incorporates features introduced in Fortran 2003, 2008, and 2018.
The easiest way to get the syntax is to install the package ModernFortran with Package Control.
After installation, you can enable the syntax with ctrl+shift+p
(cmd+shift+p
on Mac) followed by Set syntax: Modern-Fortran
.
The syntax can also be installed manually. Open the terminal and navigate to where packages are installed:
# Default location on Ubuntu
cd /home/username/.config/sublime-text/Packages
The location on your computer can be found via Preferences -> Browse packages...
. Next, clone the repository:
git clone https://github.com/eirik-kjonstad/modern-fortran-syntax.git
Alternatively, you can download the source code as a .zip
and extract the contents in the Packages folder.
Do not hesitate to post an issue in the issues
tab on the repository! If you wish to contribute, we also welcome pull requests. Please fork the repository and open a pull request with your suggested modifications.