Skip to content

Customizable line width past 72 characters in Fixed Form  #87

Open
@tymric

Description

@tymric

Description

In certain cases, some are shown below in the MWE, the syntax highlighting marks the 73rd character as a comment.

Request

Make the number of characters in a line that are coloured as input (and not comments) a user input variable.

MWE

C F77 MWE syntax highlighting breaking at line
      PROGRAM TEST

      integer :: i = 10
      ! Character 73 begins here -------------------------------------->
      print*, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i,
      print*, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i,i, i,
      print*, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i, i,i,i, i

      print*, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
      print*, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,18, 19

      print*, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, (1), 18, 19
      print*, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 18, 19

      END PROGRAM TEST

Highlighting

Screenshot from 2021-09-21 09-26-10


Original Post

Hi,

I use fixed-form Fortran with 132 columns. Visual Studio already has a setting for increasing the line width, but none of the VScode Fortran extensions have it. Is it possible to add the line width as a variable that can be changed in the settings? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions