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

HTML tags on separate line (text content in block tags on own line) #980

Open
q2apro opened this issue Aug 1, 2016 · 3 comments
Open

HTML tags on separate line (text content in block tags on own line) #980

q2apro opened this issue Aug 1, 2016 · 3 comments

Comments

@q2apro
Copy link

q2apro commented Aug 1, 2016

I could not find the answer in the doc, nor in the online demo, nor in the issue list.

When I have this HTML line:

<p>My paragraph ...</p>

I would like to beautify it to:

<p>
    My paragraph ... 
</p>

However, I could not find the options / settings. EOF option?

@bsanders1979
Copy link

This issue seems to be related to mine. Not sure what happened, but now when I beautify my markup, it puts entire tag on a single line. It used to work.

<p-toggleButton
    offLabel="Start"
    offIcon="fa-play"
    onLabel="Stop"
    onIcon="fa-stop"
    (onChange)="onChange($event)"
    [(ngModel)]="active"
    [disabled]="!project"
></p-toggleButton>

becomes

<p-toggleButton offLabel="Start" offIcon="fa-play" onLabel="Stop" onIcon="fa-stop" (onChange)="onChange($event)" [(ngModel)]="active" [disabled]="!project"></p-toggleButton>

@bitwiseman
Copy link
Member

@q2apro - I don't think this is available currently. Added as an enhancement.

@bsanders1979 - sorry. this is not related and what you're talking about is XML not HTML.

@bsanders1979
Copy link

bsanders1979 commented Aug 8, 2016

@bitwiseman I'm guessing it's considered XML because it's not a "native" element, but it's part of an html file for angular 2. In any case, the formatting used to work, but now it doesn't. Don't know if it's a bug or perhaps some default setting changed. AFAIK, I didn't change anything. I'm still relatively new to Atom, and the settings page mentions js-beautify, so forgive me if this plugin is not responsible. Basically, I just want attributes/properties to be on their own line and indented. If you could provide some direction, it would be much appreciated. Thanks.

@bitwiseman bitwiseman changed the title How to have HTML tags on separate lines? HTML tags on separate line (text content in block tags on own line) Sep 1, 2019
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

3 participants