SublimeFortran
SublimeFortran copied to clipboard
How about indentation / code beautifier?
I'm working on this. The indentation rules for modern fortran should be pretty decent, if you select a block of code and use Sublime's built in "Reindent" command it should works. If you can find any specific bugs in the indentation rules, i.e. things that get reindented incorrectly, please post the code snippet here.
What about an option to enable indentation guidelines? At least for fixed format it's disabled by default. I find them particularly useful, especially when using the "draw_active" option: http://wesbos.com/sublime-text-indentation-guide-lines/
These are disabled for the Fixed Form because they can get confusing in combination with the rulers that are turned on. You can re-enable them by adding the appropriate option in the syntax specific settings file (FortranFixedForm.sublime-settings
) as described in Readme.md
.
Hi,
First of all, thanks for the package. It is great. I'm having a small issue with indentation highlighting. I have attached a simple example of an if statement, in which the indentation gets colored in pink for no reason. How can I disable the pink highlighting?
Thanks!

Are you using space indentation or tabs? (I've had this problem when I use tabs)
2017-03-30 12:09 GMT-05:00 adrenik [email protected]:
Hi,
First of all, thanks for the package. It is great. I'm having a small issue with indentation highlighting. I have attached a simple example of an if statement, in which the indentation gets colored in pink for no reason. How can I disable the pink highlighting?
Thanks!
[image: screen shot 2017-03-30 at 1 07 54 pm] https://cloud.githubusercontent.com/assets/19351453/24516820/fde32a5c-1549-11e7-8dc4-d3535773ba07.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/315234/SublimeFortran/issues/8#issuecomment-290477502, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpuid8edmS7iJp6xkgsILLDV1i_7zYQks5rq-HSgaJpZM4IbmYZ .
I’m using tabs. Were you able to solve/avoid it?
On Mar 30, 2017, at 2:50 PM, Fernando Posada [email protected] wrote:
Are you using space indentation or tabs? (I've had this problem when I use tabs)
2017-03-30 12:09 GMT-05:00 adrenik [email protected]:
Hi,
First of all, thanks for the package. It is great. I'm having a small issue with indentation highlighting. I have attached a simple example of an if statement, in which the indentation gets colored in pink for no reason. How can I disable the pink highlighting?
Thanks!
[image: screen shot 2017-03-30 at 1 07 54 pm] https://cloud.githubusercontent.com/assets/19351453/24516820/fde32a5c-1549-11e7-8dc4-d3535773ba07.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/315234/SublimeFortran/issues/8#issuecomment-290477502, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpuid8edmS7iJp6xkgsILLDV1i_7zYQks5rq-HSgaJpZM4IbmYZ .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/315234/SublimeFortran/issues/8#issuecomment-290508592, or mute the thread https://github.com/notifications/unsubscribe-auth/ASdHndrL0fA5KQcsZW6ItElvA72s3BX-ks5rq_l8gaJpZM4IbmYZ.
Just change it to spaces, remember that the FORTRAN standard is spaces.
Right! Thanks
On Mar 30, 2017, at 2:53 PM, Fernando Posada [email protected] wrote:
Just change it to spaces, remember that the FORTRAN standar is spaces.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/315234/SublimeFortran/issues/8#issuecomment-290509555, or mute the thread https://github.com/notifications/unsubscribe-auth/ASdHnewMXemwqNBeRe9gnBTHDnPoXr1vks5rq_o6gaJpZM4IbmYZ.