gpt-4-0125-preview· openai
Suzhen/CodeChat
Pretty print this: <div class="sc-z3f5s1-1 fxdSVp"><div class="sc-2n8uaj-0 jQTWZO"><div…
- User
Pretty print this: 1 --- 2 | \ | | \ | 6 --- 3 \ / 4 --- 5
- Assistant
To pretty print the provided HTML input, we'll structure it in a more readable format, spacing out each nested element to visually represent the hierarchical structure of the HTML document. Here's a cleaned-up version:
<div class="sc-z3f5s1-1 fxdSVp"> <div class="sc-2n8uaj-0 jQTWZO"> <div class="sc-9wsboo-0 kTDwyq"> <pre class="sc-1468b5q-13 language-plain line-numbers"> <div class="sc-1468b5q-0"> <code class="sc-1468b5q-14"> <span class="sc-1468b5q-10 line-numbers-rows" aria-hidden="true"> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> <span class="sc-1468b5q-10"></span> </span> 1 --- 2 | \ | | \ | 6 --- 3 \ / 4 --- 5 </code> </div> </pre> </div> </div> </div>This format uses a consistent indentation pattern, making the nested structure of the elements clearer. Each child element is indented relative to its parent element, which helps in understanding the document's structure at a glance.