Skip to content

Commit

Permalink
optimize parser, allow {% %} in html property value
Browse files Browse the repository at this point in the history
  • Loading branch information
junstyle committed Sep 5, 2023
1 parent b324c14 commit d462fcc
Show file tree
Hide file tree
Showing 6 changed files with 7,947 additions and 1,477 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ this extention inherit from <https://github.com/vscode-django/vscode-django>, th
},
```

## How to ignore code, use `prettier-ignore` and `prettier-ignore-start`

When you are not happy with how Prettier formats a certain element or section in the code, you can tell it to leave it in peace:

```
{# prettier-ignore #}
<div class="weird-formatting" >This will not be re-formatted</div>
<div class="weird-formatting" >But this will be</div>
```

You can also tell Prettier to leave entire regions as they are:

```
{# prettier-ignore-start #}
...
{# prettier-ignore-end #}
```

## If you love this extension, you could

[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >](https://www.buymeacoffee.com/junstyle)
7,924 changes: 7,910 additions & 14 deletions out/extension.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions out/extension.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d462fcc

Please sign in to comment.