Notepad3
Notepad3 copied to clipboard
About the Fortran Syntax highlighting
Dear developers, Can you add Fortran syntax support to Notepad3? I believe this is what most Fortran users want. I and many Fortran users are frustrated that Notepad3 does not support Fortran syntax. I would appreciate it if you could add Fortran syntax support to notepad3.
Best wishes!
Duplicate of #1766
Hi @RaiKoHoff ,
It looks like Lexilla 5.13 has a Fortran Lexer "LexFortran.cxx" 👍
Also, Notepad2-zufuliu has a lexer "Fortran Source (associated filename ext: f; for; ftn; fpp; f90; f95; f03; f08; f2k; hf)
I will try to find a test file. 🤔
Can you add Fortran syntax support to Notepad3?
Hello @GJYAQXT ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.21.1130.1_beta.paf" or newer, see 1st list in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.21.1130.1_beta_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃
Can you add Fortran syntax support to Notepad3?
Hello @GJYAQXT ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.21.1130.1_beta.paf" or newer, see 1st list in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.21.1130.1_beta_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃
OK, thank you for your work. I will use it in my future work. If there are any bugs, I will give you feedback.😀
Best wishes!
hello hpwamr, it seems to be working well but it seems that Fortran keyword support is not perfect, many of the keywords are not properly highlighted e.g. "Allocated, matmul, dot_product" etc. Hopefully you can modify it so that Notepad3 can correctly parse Fortran keywords.

@hpwamr
@GJYAQXT : Please provide a reference to latest keyword lists, or contribute keywords directly to this project: Fortran Lexer highlight words: https://github.com/rizonesoft/Notepad3/blob/master/src/StyleLexers/styleLexFortran.c
Hello, I am a Fortran user, thank you for your work ♥, I've updated Fortran keywords here, but I need a little more time to check it out, and then I'll submit a PR.
Hi @RaiKoHoff , The "# Define SciTE settings for Fortran files." fortran.zip seems add some missing words. 🤔
PR #3847 will split the style Function into Function and User-Defined Function.
See (https://github.com/rizonesoft/Notepad3/blob/master/src/StyleLexers/styleLexFortran.c) for the split,
using definition provided by zoziha.
Hope the split makes sense? Other suggestions are welcome.
Also better default highlight coloring suggestions (Light & Dark Mode) are welcome.
Hi, @RaiKoHoff
I checked for a little mistake and corrected it, and I just submitted a PR. I saw that you also submitted PR, so I thought you could update your PR content (because my previous version contains some typos), and then I'll cancel my PR.
Thank you for your work! ♥
but it seems that Fortran keyword support is not perfect, many of the keywords are not properly highlighted
Hello @GJYAQXT , @zoziha
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.21.1202.1_beta.paf" or newer, see 1st list in issue #1129.
"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.
Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.21.1202.1_beta_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃