adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.26k stars 7.64k forks source link

is there a fortran mode? #11713

Open foice opened 8 years ago

foice commented 8 years ago

Hello, I have seen some traces of a fortran syntax highlighting in the repository, but my bracket does not open a .f file as a fortran file and the fortran mode is not listed among the available modes (should be between Embedded ruby and Groove, i suppose).

Am I the only one lacking this mode?

petetnt commented 8 years ago

It's not defined by default (the references you see are related to jQuery-UI's demos) but Fortran support is available as an extension.

Go to File -> Extensions and search for Fortran (I made it as an extension just now, however I didn't notice that there's also another older one that also defines other languages such as Haxe too).

foice commented 8 years ago

Great! thanks for pulling this out. I noticed that comments are not colored and also "line junctions character" are not colored. If I may, this makes it a lot less usable that regular vi or emacs syntax coloring.

petetnt commented 8 years ago

You could try changing your theme (usually comments are rather plain in normal themes) and filing an issue to the CodeMirror repo which provides the syntax highlighting for Fortran for the "line junctions character" issue.

foice commented 8 years ago

will experiment with the theme. thanks for suggesting that.

you said there also another extension that covers fortran syntax, do you recall what is that?

petetnt commented 8 years ago

The other is part of brackets-language-extensions and can be found by searching for Fortran too: sadly this won't help you in your other case as it uses the same CodeMirror syntax highlighting as my extension.

foice commented 8 years ago

Do'h

Owl67h2 commented 4 years ago

I added fortune to brackets