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

[Question] Disable/customize auto formatting on save #3

Open
detectedstealth opened this issue Oct 5, 2018 · 0 comments
Open

[Question] Disable/customize auto formatting on save #3

detectedstealth opened this issue Oct 5, 2018 · 0 comments

Comments

@detectedstealth
Copy link

When adding JS specifically I am using Django to render in the background so If I have:

var isAuthenticated = {% if purchase_session.username %}true{% else %}false{% endif %};

The auto format changes it to this which prevents Django from parsing out its tags:

var isAuthenticated = {
    %if purchase_session.username%}
  true{
    %else%}
    false{
      %endif%};

Is there a way to prevent the auto formatting of code inside <script> tags?

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

No branches or pull requests

1 participant