-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support HTML #133
Comments
The only option for HTML5 is HTML Whitespace Sensitivity. |
I would also like to see an update for Prettier. It supports Angular template files, while Pretty Diff messes up these files by converting all attributes in html files to lowercase (*ngFor becomes ngfor). Also prettier supports YAML language, which is currently not available in unibeautify. |
@chipco Would you mind providing a minor code sample. In the latest major version that problem is solved by adding an additional rule to this line of code: https://github.com/Unibeautify/sparser/blob/master/lexers/markup.ts#L495 |
Using unibeautify vscode extension v0.7.0 <h2>My Heroes</h2>
<div>
<label>Hero name:
<input #heroName />
</label>
<!-- (click) passes input value to add() and then clears the input -->
<button (click)="add(heroName.value); heroName.value=''">
add
</button>
</div>
<ul class="heroes">
<li *ngFor="let hero of heroes">
<a routerLink="/detail/{{hero.id}}">
<span class="badge">{{hero.id}}</span> {{hero.name}}
</a>
<button class="delete" title="delete hero"
(click)="delete(hero)">x</button>
</li>
</ul>
|
The 2 mentioned HTML attribute problems are now solved in Pretty Diff. |
from their homepage (https://prettier.io/):
The text was updated successfully, but these errors were encountered: