ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Fortran

by Nevensky ST3

Fortran syntax highlighting for Sublime Text 3

Details

Installs

  • Total 43K
  • Win 20K
  • Mac 10K
  • Linux 13K
Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29
Windows 2 1 1 4 5 2 2 3 1 2 3 0 0 5 0 0 5 3 3 3 1 1 1 0 4 1 3 4 1 2 3 0 2 8 0 0 1 0 2 1 1 3 2 2 2 6
Mac 0 0 0 1 3 2 0 0 0 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 1 0 0 0 1 0 1 1 0 2 1 0 1 2 4 0 1 0 1 1
Linux 1 1 1 0 2 1 3 0 3 3 2 0 3 2 0 1 3 1 1 1 0 1 3 2 3 1 0 1 1 0 4 1 0 3 3 1 2 1 2 3 0 4 0 1 0 1
0510Jul 13Jul 10Jul 7Jul 4Jul 1Jun 28Jun 25Jun 22Jun 19Jun 16Jun 13Jun 10Jun 7Jun 4Jun 1May 29Jul 13 Linux: 1 Mac: 0 Windows: 2Jul 12 Linux: 1 Mac: 0 Windows: 1Jul 11 Linux: 1 Mac: 0 Windows: 1Jul 10 Linux: 0 Mac: 1 Windows: 4Jul 9 Linux: 2 Mac: 3 Windows: 5Jul 8 Linux: 1 Mac: 2 Windows: 2Jul 7 Linux: 3 Mac: 0 Windows: 2Jul 6 Linux: 0 Mac: 0 Windows: 3Jul 5 Linux: 3 Mac: 0 Windows: 1Jul 4 Linux: 3 Mac: 1 Windows: 2Jul 3 Linux: 2 Mac: 1 Windows: 3Jul 2 Linux: 0 Mac: 0 Windows: 0Jul 1 Linux: 3 Mac: 0 Windows: 0Jun 30 Linux: 2 Mac: 0 Windows: 5Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 1 Mac: 0 Windows: 0Jun 27 Linux: 3 Mac: 0 Windows: 5Jun 26 Linux: 1 Mac: 1 Windows: 3Jun 25 Linux: 1 Mac: 0 Windows: 3Jun 24 Linux: 1 Mac: 1 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 1 Mac: 0 Windows: 1Jun 21 Linux: 3 Mac: 0 Windows: 1Jun 20 Linux: 2 Mac: 0 Windows: 0Jun 19 Linux: 3 Mac: 1 Windows: 4Jun 18 Linux: 1 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 1 Windows: 3Jun 16 Linux: 1 Mac: 0 Windows: 4Jun 15 Linux: 1 Mac: 0 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 4 Mac: 1 Windows: 3Jun 12 Linux: 1 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 1 Windows: 2Jun 10 Linux: 3 Mac: 1 Windows: 8Jun 9 Linux: 3 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 2 Windows: 0Jun 7 Linux: 2 Mac: 1 Windows: 1Jun 6 Linux: 1 Mac: 0 Windows: 0Jun 5 Linux: 2 Mac: 1 Windows: 2Jun 4 Linux: 3 Mac: 2 Windows: 1Jun 3 Linux: 0 Mac: 4 Windows: 1Jun 2 Linux: 4 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 1 Windows: 2May 31 Linux: 1 Mac: 0 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 2May 29 Linux: 1 Mac: 1 Windows: 6Jul 13 Linux: 1 Mac: 0 Windows: 2Jul 12 Linux: 1 Mac: 0 Windows: 1Jul 11 Linux: 1 Mac: 0 Windows: 1Jul 10 Linux: 0 Mac: 1 Windows: 4Jul 9 Linux: 2 Mac: 3 Windows: 5Jul 8 Linux: 1 Mac: 2 Windows: 2Jul 7 Linux: 3 Mac: 0 Windows: 2Jul 6 Linux: 0 Mac: 0 Windows: 3Jul 5 Linux: 3 Mac: 0 Windows: 1Jul 4 Linux: 3 Mac: 1 Windows: 2Jul 3 Linux: 2 Mac: 1 Windows: 3Jul 2 Linux: 0 Mac: 0 Windows: 0Jul 1 Linux: 3 Mac: 0 Windows: 0Jun 30 Linux: 2 Mac: 0 Windows: 5Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 1 Mac: 0 Windows: 0Jun 27 Linux: 3 Mac: 0 Windows: 5Jun 26 Linux: 1 Mac: 1 Windows: 3Jun 25 Linux: 1 Mac: 0 Windows: 3Jun 24 Linux: 1 Mac: 1 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 1 Mac: 0 Windows: 1Jun 21 Linux: 3 Mac: 0 Windows: 1Jun 20 Linux: 2 Mac: 0 Windows: 0Jun 19 Linux: 3 Mac: 1 Windows: 4Jun 18 Linux: 1 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 1 Windows: 3Jun 16 Linux: 1 Mac: 0 Windows: 4Jun 15 Linux: 1 Mac: 0 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 4 Mac: 1 Windows: 3Jun 12 Linux: 1 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 1 Windows: 2Jun 10 Linux: 3 Mac: 1 Windows: 8Jun 9 Linux: 3 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 2 Windows: 0Jun 7 Linux: 2 Mac: 1 Windows: 1Jun 6 Linux: 1 Mac: 0 Windows: 0Jun 5 Linux: 2 Mac: 1 Windows: 2Jun 4 Linux: 3 Mac: 2 Windows: 1Jun 3 Linux: 0 Mac: 4 Windows: 1Jun 2 Linux: 4 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 1 Windows: 2May 31 Linux: 1 Mac: 0 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 2May 29 Linux: 1 Mac: 1 Windows: 6Jul 13 Linux: 1 Mac: 0 Windows: 2Jul 12 Linux: 1 Mac: 0 Windows: 1Jul 11 Linux: 1 Mac: 0 Windows: 1Jul 10 Linux: 0 Mac: 1 Windows: 4Jul 9 Linux: 2 Mac: 3 Windows: 5Jul 8 Linux: 1 Mac: 2 Windows: 2Jul 7 Linux: 3 Mac: 0 Windows: 2Jul 6 Linux: 0 Mac: 0 Windows: 3Jul 5 Linux: 3 Mac: 0 Windows: 1Jul 4 Linux: 3 Mac: 1 Windows: 2Jul 3 Linux: 2 Mac: 1 Windows: 3Jul 2 Linux: 0 Mac: 0 Windows: 0Jul 1 Linux: 3 Mac: 0 Windows: 0Jun 30 Linux: 2 Mac: 0 Windows: 5Jun 29 Linux: 0 Mac: 0 Windows: 0Jun 28 Linux: 1 Mac: 0 Windows: 0Jun 27 Linux: 3 Mac: 0 Windows: 5Jun 26 Linux: 1 Mac: 1 Windows: 3Jun 25 Linux: 1 Mac: 0 Windows: 3Jun 24 Linux: 1 Mac: 1 Windows: 3Jun 23 Linux: 0 Mac: 0 Windows: 1Jun 22 Linux: 1 Mac: 0 Windows: 1Jun 21 Linux: 3 Mac: 0 Windows: 1Jun 20 Linux: 2 Mac: 0 Windows: 0Jun 19 Linux: 3 Mac: 1 Windows: 4Jun 18 Linux: 1 Mac: 0 Windows: 1Jun 17 Linux: 0 Mac: 1 Windows: 3Jun 16 Linux: 1 Mac: 0 Windows: 4Jun 15 Linux: 1 Mac: 0 Windows: 1Jun 14 Linux: 0 Mac: 0 Windows: 2Jun 13 Linux: 4 Mac: 1 Windows: 3Jun 12 Linux: 1 Mac: 0 Windows: 0Jun 11 Linux: 0 Mac: 1 Windows: 2Jun 10 Linux: 3 Mac: 1 Windows: 8Jun 9 Linux: 3 Mac: 0 Windows: 0Jun 8 Linux: 1 Mac: 2 Windows: 0Jun 7 Linux: 2 Mac: 1 Windows: 1Jun 6 Linux: 1 Mac: 0 Windows: 0Jun 5 Linux: 2 Mac: 1 Windows: 2Jun 4 Linux: 3 Mac: 2 Windows: 1Jun 3 Linux: 0 Mac: 4 Windows: 1Jun 2 Linux: 4 Mac: 0 Windows: 3Jun 1 Linux: 0 Mac: 1 Windows: 2May 31 Linux: 1 Mac: 0 Windows: 2May 30 Linux: 0 Mac: 1 Windows: 2May 29 Linux: 1 Mac: 1 Windows: 6

Readme

Source
raw.​githubusercontent.​com

SublimeFortran

Comprehensive syntax highlighting for Fortran in Sublime Text 3.

Features:

  • Linter based on gfortran (requires the package SublimeLinter to work), highlights errors while you work:

  • Hover over inline latex in comments to see it rendered in a popup (requires build >= 3116):

  • Hover over intrinsic functions to see documentation in a popup (requires build >= 3116):

  • Code snippets

  • Indentation rules

  • Separate syntax definitions for fixed-format and modern Fortran.

  • Based on the new sublime-syntax file format and therefore currently requires a recent beta version of Sublime Text 3 (minimum build number 3084).

Pull requests are welcome :)

Installation

Option 1: via Package Control (recommended)

1) Install Package Control

2) Open the command pallete via ctrl+shift+p (Win, Linux) or cmd+shift+p (OS X)

3) Choose Package Control: Install Package

4) Choose Fortran

5) The package will be installed and updated regularly by Package Control

Option 2: clone the repository

1) In a terminal, cd into your Sublime Text Packages directory (which you can find via the menu option Preferences → Browse Packages...)

2) Clone the repository: git clone https://github.com/315234/SublimeFortran.git Fortran (note the local directory name at the end of the command line)

3) To update the package in future, return to the directory and run git pull

Configuration

Disabling documentation and latex popups

These can be turned on or off with the following settings:

{
    "fortran_disable_docs": true,
    "fortran_disable_latex": true,
}

Disabling rulers

The Fixed Form Fortran syntax included in this package sets some rulers to help code indentation and show where the 72 character limit is. If you find these distracting, they can be disabled by creating a language specific settings file.

To do this, create a file called FortranFixedForm.sublime-settings in your Packages/User/ containing the following:

{
    "rulers": []
}

Using the linter

This package includes a linter based on SublimeLinter3. SublimeLinter user settings can be modified by selecting SublimeLinter Settings - User from the Command Palette.

You may need to tell SublimeLinter where gfortran is located by adding it to paths in SublimeLinter user settings:

{
    "user": {
        "paths": {
            "linux": [],
            "osx": [
                "/usr/local/bin"
            ],
            "windows": []
        },
    }
}

Additional command line flags for gfortran may be also specified: “JSON { "user”: { “linters”: { “gfortranfixedform”: { “@disable”: false, “args”: [ “-fdefault-real-8”, “-fdefault-double-8” ], “excludes”: [] }, “gfortranmodern”: { “@disable”: false, “args”: [ “-fdefault-real-8”, “-fdefault-double-8”, “-ffree-line-length-none” ], “excludes”: [] }, }, } }

The default flags included are currently `-cpp -fsyntax-only -Wall`.