Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about indentation / code beautifier? #8

Open
efposadac opened this issue May 10, 2016 · 8 comments
Open

How about indentation / code beautifier? #8

efposadac opened this issue May 10, 2016 · 8 comments

Comments

@efposadac
Copy link

No description provided.

@315234
Copy link
Collaborator

315234 commented May 11, 2016

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.

@hmcezar
Copy link

hmcezar commented Jul 21, 2016

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/

@315234
Copy link
Collaborator

315234 commented Jul 22, 2016

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.

@adrenik
Copy link

adrenik commented Mar 30, 2017

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

@efposadac
Copy link
Author

efposadac commented Mar 30, 2017 via email

@adrenik
Copy link

adrenik commented Mar 30, 2017 via email

@efposadac
Copy link
Author

efposadac commented Mar 30, 2017

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

@adrenik
Copy link

adrenik commented Mar 30, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants