Home Download Buy Blog Forum Support

Fortran syntax highlighting

Fortran syntax highlighting

Postby stewie on Sun Oct 25, 2009 9:27 pm

First of all, congratulations Jon this is an impressive effort given that it's a one-man job! (Folks over at Lifehacker agree too).

I was looking all afternoon for a decent Windows editor with Fortran syntax highlighting; turns out this is rather difficult to come by. Could I please request that you add a Fortran 90/95 syntax highlight feature? Thanks
stewie
 
Posts: 1
Joined: Sun Oct 25, 2009 8:56 pm

Re: Fortran syntax highlighting

Postby astralnocturne on Thu Sep 30, 2010 5:57 pm

i second this feature request!
astralnocturne
 
Posts: 1
Joined: Thu Sep 30, 2010 5:56 pm

Re: Fortran syntax highlighting

Postby jps on Thu Sep 30, 2010 8:22 pm

You can get Fortran syntax highlighting by downloading the .tmLanguage file from http://svn.textmate.org/trunk/Bundles/F ... /Syntaxes/, and placing it under Packages/User (or something else, such as Packages/Fortran), which you can navigate to from the Preferences/Browse Packages menu. You'll have to restart Sublime Text after placing it there.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Fortran syntax highlighting

Postby mok on Mon Jan 09, 2012 1:35 pm

Hello Jon, that link is broken. How do I enable Fortran support in ST2?
mok
 
Posts: 6
Joined: Sat Jul 02, 2011 6:45 pm

Re: Fortran syntax highlighting

Postby C0D312 on Mon Jan 09, 2012 5:27 pm

C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Fortran syntax highlighting

Postby zolaric on Sun Feb 05, 2012 9:25 pm

I have downloaded the .tmLanguage file from the link above, but when I place it in Packages/Fortran and restart Sublime Text, I still do not have an option to select Fortran syntax. Any help would be appreciated to solve this problem. (I am using Mac OS X Lion if that helps.)
zolaric
 
Posts: 2
Joined: Fri Jan 06, 2012 3:11 am

Re: Fortran syntax highlighting

Postby valuex on Tue Jun 12, 2012 2:50 pm

I guess the reason is that,
the tmLanguage you download is a HTML format file,
while the syntax highlight file for Sublime is in the format of XML.
e.g. some modification to the tmLanguage file is required before it takes effect.
As an elementary user to Sublime Text 2, I cannot do it so far.
Anyone who could make these modifications will be highly appreciated. :)
valuex
 
Posts: 1
Joined: Tue Jun 12, 2012 2:40 pm

Re: Fortran syntax highlighting

Postby tito on Tue Jun 12, 2012 4:34 pm

dowload this file https://raw.github.com/textmate/fortran ... tmLanguage
to .../Packages/Fortran/Fortran%20-%20Punchcard.tmLanguage

and restart. You may need to change the sintax for a file via the statusbar menu. Also you can select "Open all with current extension as.."
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Fortran syntax highlighting

Postby filipesmg on Mon Aug 27, 2012 5:04 pm

Hi everyone,

I have just found out about Sublime Text 2, and I'm really impressed! The only problem is that I can't make some Fortran things to work with it. I don't know what happened, but yesterday I have downloaded the bundle from
https://github.com/textmate/fortran.tmbundle
and I have used the syntax highlighting for the Fortran - Modern without any problems. Today, I'm trying to open some of my .f90 files, but the program freezes! Sometimes, I manage to open and use the Modern SH, but others, it doesn't work. I still didn't find out how to reproduce. Is anyone having this problem? Or have an idea of what that must be?

I can use the Fortran - Punchcard, but the problem is that it doesn't work with comments for the Fortran 90 files (if I have comments with apostrophes and quotes, the highlighting gets completely messed up, and I can't use the "c" to toggle comments.)
filipesmg
 
Posts: 5
Joined: Mon Aug 27, 2012 4:33 pm

Re: Fortran syntax highlighting

Postby ImFromNASA on Wed Jan 08, 2014 4:05 am

How would I do this for Sublime Text 3? It seems that the Language folders have become .sublime-package files.
ImFromNASA
 
Posts: 1
Joined: Wed Jan 08, 2014 4:03 am

Next

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 10 guests