-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.F77 file extension does not syntax highlight #3425
Comments
Well its not listed here. I guess the people who made that filetype didn't accept it.
|
I added *.F77 there and it didn't work.
On 3/7/23 07:48, elextr wrote:
Well its not listed here
<https://github.com/geany/geany/blob/afec6557e0f453a38b2976069de3763b8e1d09d1/data/filetype_extensions.conf#L30>.
I guess the people who made that filetype didn't accept it.
|Tools->Configuration Files->filetype_extensions.conf| and add it to
your own copy.
—
Reply to this email directly, view it on GitHub
<#3425 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOLYVDDUEF7NR3YSNCDLI3W244ENANCNFSM6AAAAAAVSPXYKQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
|
I presume you removed the comments (the |
You presume correct.
There is something not loved with .F77. If I save it to lowercase .f77
It now gets love. The correct file remains unloved.
I restarted Geany and everything. Just to be complete.
I'm guessing there is an oopsie with the file extension matches the
syntax tag. These source files came from OpenVMS where they are and must
remain uppercase.
On 3/7/23 07:59, elextr wrote:
I presume you removed the comments (the |#~ |) from the |[extensions]|
heading and the |F77=| line?
—
Reply to this email directly, view it on GitHub
<#3425 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOLYVB4YSYFPTHPSXCJXELW245LJANCNFSM6AAAAAAVSPXYKQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
|
What system are you running Geany on? What filetype shows in the status bar for one of those files? And I presume you put |
Per the original post
system specs
For the .F77 file
f77 bottom of window
For the .f77 file
.f77 bottom of window
On 3/7/23 08:30, elextr wrote:
What system are you running Geany on?
What filetype shows in the status bar for one of those files?
—
Reply to this email directly, view it on GitHub
<#3425 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOLYVHRG5HAISMDKXACFILW25BBXANCNFSM6AAAAAAVSPXYKQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
|
What? Thats not a Geany filetype, the Geany filetype is
Again, thats not a Geany filetype, none have a It looks like its finding something as a filetype, but not the right thing. What version of Geany? Do you have any custom filetypes? PS you have been caught by the github edit trap, I added a couple of extra questions to my previous comment, but github doesn't email edits, so you missed them. Its always best to go to github, not answer the email. |
No argument, it should remove it and just be a website with email notifications.
"Filetype" is basic terminology used throughout the Geany manual and UI ( Images have their uses, but should be used sparingly, you are spamming everybody watching the repo with them and as above they often omit the important part. Thank you for the example, for the same reason as above, next time please put it in a Gist and just paste the link here. The example highlights here when opened after I add
What I think you call the "syntax" is the "filetype" we are talking about, and yes Geany will not change the filetype of an opened file, because a user can set the filetype and it should not therefore be changed. That is preserved in the Geany session and therefore over restart. You can either set it yourself, or close and re-open the file.
If you mean you edited the files directly instead of the suggested method here? If so you need to reload configuration, or restart Geany to load the edited config file, whereas using the menu does it automatically on save. Then you also need to re-open the file to have its filetype autodetected again.
Works here, the
Not sure what you mean, is that "functional" as in functional languages like Haskell or what? The filetype extensions are specified in a configuration file exactly to cater for examples like this, where a specific use-case needs additional extensions, and to allow users to tailor the annoying case of two applications using the same extension (Matlab and Objective C
Well as I have 15+ more years experience than you I guess I can call you a newby 😄 But its very likely that whoever contributed the fortran filetype and extensions list was even younger and had never heard of VMS, or a Teletype, (ASR33 anybody?) so since |
Isn't that the only real issue here? No, Geany won't change the file type of a loaded file, even on restart, so long as it's part of the session. To force redetection, the simplest solution is to close and reopen the file. So if you had your .F77 file open all along, no, changing the extensions lists will not have helped. Of course, when you added .F78 I guess you loaded such a file afterwards and thus it worked. Have you tried to open .F77 files you never had before, or Close each file and reopen them? I really can't figure out why .F77 in particular would give you trouble… |
As I said, works for me. |
Although you have reported it, if we can't reproduce it we can't fix it. Seems there is something unusual about your system that doesn't occur here. |
Note I also tested with LMDE 5 and the Geany it supplies, 1.37.1 as well as current git version, both worked. |
OK, so, I still cannot reproduce the issue (yet I have a clue, see below), but I made #3427 to fix that for good and make it "functional by default". Now, to what I think the issue is: looking at your screenshot of the filetype_extensions.conf file:
This leads me to believe that the issue is that you did not uncomment the FWIW, this filetype_extensions.conf should suffice to solve the initial issue: # Filetype extension configuration file for Geany
# Insert as many items as you want, separate them with a ";".
# See Geany's main documentation for details.
[Extensions]
F77=*.f;*.for;*.ftn;*.f77;*.F;*.FOR;*.FTN;*.fpp;*.FPP;*.F77; |
Source files with uppercase .F77 file extension do not syntax highlight when opened. .F90 works perfectly.
The text was updated successfully, but these errors were encountered: