SublimeFortran icon indicating copy to clipboard operation
SublimeFortran copied to clipboard

How about indentation / code beautifier?

Open efposadac opened this issue 8 years ago • 8 comments

efposadac avatar May 10 '16 23:05 efposadac

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.

315234 avatar May 11 '16 09:05 315234

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/

hmcezar avatar Jul 21 '16 21:07 hmcezar

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.

315234 avatar Jul 22 '16 14:07 315234

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!

screen shot 2017-03-30 at 1 07 54 pm

adrenik avatar Mar 30 '17 17:03 adrenik

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 .

efposadac avatar Mar 30 '17 18:03 efposadac

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.

adrenik avatar Mar 30 '17 18:03 adrenik

Just change it to spaces, remember that the FORTRAN standard is spaces.

efposadac avatar Mar 30 '17 18:03 efposadac

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.

adrenik avatar Mar 30 '17 18:03 adrenik