Avoid formatting an element in HTML

Viewed 22

I'm a new user of PyScript and a user of Prettier too. When I write my script inside of my HTML page, Prettier is formatting all the elements, <py-script> tags included. Is there a way to avoid formatting a specific element in HTML like the <py-script> tags?

Example :

<p>
  This will be formatted <span>with Prettier.</span>
</p>

<py-script>
  # this bloc will never be formatted.
  for i in range(5):
    print("hello world")
</py-script>
0 Answers
Related