Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

About the Fortran Syntax highlighting

Open tsiayigong opened this issue 4 years ago • 11 comments

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!

tsiayigong avatar Oct 25 '21 01:10 tsiayigong

Duplicate of #1766

hpwamr avatar Oct 25 '21 04:10 hpwamr

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. 🤔

hpwamr avatar Nov 08 '21 14:11 hpwamr

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... 😃

hpwamr avatar Nov 30 '21 09:11 hpwamr

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!

tsiayigong avatar Dec 02 '21 02:12 tsiayigong

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. test

@hpwamr

tsiayigong avatar Dec 02 '21 03:12 tsiayigong

@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

RaiKoHoff avatar Dec 02 '21 07:12 RaiKoHoff

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.

zoziha avatar Dec 02 '21 08:12 zoziha

Hi @RaiKoHoff , The "# Define SciTE settings for Fortran files." fortran.zip seems add some missing words. 🤔

hpwamr avatar Dec 02 '21 08:12 hpwamr

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.

RaiKoHoff avatar Dec 02 '21 09:12 RaiKoHoff

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! ♥

zoziha avatar Dec 02 '21 09:12 zoziha

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... 😃

hpwamr avatar Dec 02 '21 16:12 hpwamr