When I open some fortran file, then some letters looks strange (Comic MS TTF?).
For example, "sub$r$outine", "modul$e$" etc.
$n$- this is a problematic letter. I don't see any reason why this is happening. (All the settings are default, Language is set ot Fortran)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In old-style FORTRAN, columns (character positions on a line) had special meanings. Column 5 was the "continuation column" -- a non-blank character in that column meant the line was a continuation of the previous line. NotePad++ is following this convention.
There may be a way to indicate to NotePad++ that you're using free-form FORTRAN. If not, you'll have to make you own language defintion.
Regards.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I found the same problem today 2007-06-19 on version 4.1.2. It is a little bit strange for not-solved in 2 years as Notepad++ is quite popular. If this is a problem related to other languages, say C++ or python, the situation might be different. Fortran, my favorite language, is dying...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, don't worry. It's not dying.
In the old days only the mathematicians and engineers used fortran, for their purposes.
In nowadays every "script kiddie" uses some kind of programming language, but the apsolute number
of mathematicians and engineers remain the same, and therefore the relative number of programmers
using fortran looks small. It's still the only option for what it is made for. In my company there
are 14 fortran programmers (CFD related) and 1 C and 1 VB programmer.
Cheers !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I too tried to customise in vain... partially succeded but all in all it was a mess.
Here're something I thought:
1. access to "column-detection" function
It's necessary that we users are able to change "column-detection" function. I mean, current "FORTRAN" setting obviously detects 6th and 72nd (seems 74th? dunno why) columns. I want to eliminate the 6th and change the 72nd to 132nd or any. Unfortunately though, I beleive this cannot be possible for now. A user cannot touch this function, right?
2. "cascading" in making a User Defind Lanugage
It's wonderful if "User Defind Language" can be created *based on* any exsiting language(s), in this case "FORTRAN", so that we can create "Fortran" (free-form).
I tried to create my own highlighting by copying from and looking at "language.xml" and "stylers.xml". However, it seemed several of the keywords wouldn't highlight properly. Assigning IF or SUBROUTINE to folding field didn't seem to work. Probably my insufficient understanding of "User Defind Language" is the cause, at least partially. Even if so, "cascading" will be quite helpful.
Is it possible to implement these features, if it's not that hard to do so? Or should I post this kind of "wishes" to elsewhere?
P.S. I loved NotePad++ at once and I want it to be updated in the future, so I donated a bit ($20), while knowing this is just a teardrop in the ocean... feeding 3 children doesn't seem to be easy.
maz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Every FORTRANeer,
i always love and use this language, and now we have f90, f95, f2k and so on.
also we have very good compilers such as g95, gfortran.
Notepad++ is an excellent editor, but it only supports f77. i have waited for years, but this situation have not been improved any more. now, i use the "User Defind Lanugage" to define a "FortranFreeForm", the method is as follow, i hope it'll be helpful to FORTRANeers.
1. find the folder "C:\Program Files\Notepad++\" and open the file "langs.xml" with Notepad++, then locate the section '<Language name="fortran"'.
2. click the "display user defined option" in the toolbar menu and dock this window.
3. define a "FortranFreeForm" new language.
4. define language extention as "f for f90 f95 f2k".
4. copy the 3 group of keywords from the left window and paste to the corresponding group in the right window seprately.
5. set comment as ! then set numerals.
6. set oprators as "-()*./:^+<=>" and delimiters as '' and "" .
7. at the above steps of 4 to 6, choose your favorite colors and fonts. i like fixedsys 11 size personally.
8. undock the rightside window and close it.
9. open a fortran source file(the file name extention be .f95 for example) with Notepad++ and then, enjoy it!
posted by lyx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I open some fortran file, then some letters looks strange (Comic MS TTF?).
For example, "sub$r$outine", "modul$e$" etc.
$n$- this is a problematic letter. I don't see any reason why this is happening. (All the settings are default, Language is set ot Fortran)
In old-style FORTRAN, columns (character positions on a line) had special meanings. Column 5 was the "continuation column" -- a non-blank character in that column meant the line was a continuation of the previous line. NotePad++ is following this convention.
There may be a way to indicate to NotePad++ that you're using free-form FORTRAN. If not, you'll have to make you own language defintion.
Regards.
Greg
Yes, I found the same problem today 2007-06-19 on version 4.1.2. It is a little bit strange for not-solved in 2 years as Notepad++ is quite popular. If this is a problem related to other languages, say C++ or python, the situation might be different. Fortran, my favorite language, is dying...
Oh, don't worry. It's not dying.
In the old days only the mathematicians and engineers used fortran, for their purposes.
In nowadays every "script kiddie" uses some kind of programming language, but the apsolute number
of mathematicians and engineers remain the same, and therefore the relative number of programmers
using fortran looks small. It's still the only option for what it is made for. In my company there
are 14 fortran programmers (CFD related) and 1 C and 1 VB programmer.
Cheers !
Does anybody know a way to indicate to NotePad++ the using of free-form FORTRAN?
If not, how do I make my own language definition?
Thanks in advanced.
Hi,
I too tried to customise in vain... partially succeded but all in all it was a mess.
Here're something I thought:
1. access to "column-detection" function
It's necessary that we users are able to change "column-detection" function. I mean, current "FORTRAN" setting obviously detects 6th and 72nd (seems 74th? dunno why) columns. I want to eliminate the 6th and change the 72nd to 132nd or any. Unfortunately though, I beleive this cannot be possible for now. A user cannot touch this function, right?
2. "cascading" in making a User Defind Lanugage
It's wonderful if "User Defind Language" can be created *based on* any exsiting language(s), in this case "FORTRAN", so that we can create "Fortran" (free-form).
I tried to create my own highlighting by copying from and looking at "language.xml" and "stylers.xml". However, it seemed several of the keywords wouldn't highlight properly. Assigning IF or SUBROUTINE to folding field didn't seem to work. Probably my insufficient understanding of "User Defind Language" is the cause, at least partially. Even if so, "cascading" will be quite helpful.
Is it possible to implement these features, if it's not that hard to do so? Or should I post this kind of "wishes" to elsewhere?
P.S. I loved NotePad++ at once and I want it to be updated in the future, so I donated a bit ($20), while knowing this is just a teardrop in the ocean... feeding 3 children doesn't seem to be easy.
maz
Hi, Every FORTRANeer,
i always love and use this language, and now we have f90, f95, f2k and so on.
also we have very good compilers such as g95, gfortran.
Notepad++ is an excellent editor, but it only supports f77. i have waited for years, but this situation have not been improved any more. now, i use the "User Defind Lanugage" to define a "FortranFreeForm", the method is as follow, i hope it'll be helpful to FORTRANeers.
1. find the folder "C:\Program Files\Notepad++\" and open the file "langs.xml" with Notepad++, then locate the section '<Language name="fortran"'.
2. click the "display user defined option" in the toolbar menu and dock this window.
3. define a "FortranFreeForm" new language.
4. define language extention as "f for f90 f95 f2k".
4. copy the 3 group of keywords from the left window and paste to the corresponding group in the right window seprately.
5. set comment as ! then set numerals.
6. set oprators as "-()*./:^+<=>" and delimiters as '' and "" .
7. at the above steps of 4 to 6, choose your favorite colors and fonts. i like fixedsys 11 size personally.
8. undock the rightside window and close it.
9. open a fortran source file(the file name extention be .f95 for example) with Notepad++ and then, enjoy it!
posted by lyx