docs/src/7-playground.md
<input id="logging-checkbox" type="checkbox"></input> <label for="logging-checkbox">Log</label>
<input id="anonymous-nodes-checkbox" type="checkbox"></input> <label for="anonymous-nodes-checkbox">Show anonymous nodes</label>
<input id="query-checkbox" type="checkbox"></input> <label for="query-checkbox">Query</label>
<input id="accessibility-checkbox" type="checkbox"></input> <label for="accessibility-checkbox">Accessibility</label>
<textarea id="code-input"> </textarea> <div id="query-container" style="visibility: hidden; position: absolute;"> <h2>Query</h2> <textarea id="query-input"></textarea> </div> <h2> Tree <button type="button" id="copy-button" class="theme-toggle" aria-label="Copy tree"> <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect width="14" height="14" x="8" y="8" rx="2" ry="2" /> <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /> </svg> </button> </h2> <span id="update-time"></span> <div id="output-container-scroll"> <pre id="output-container" class="highlight"></pre> </div> <h2 id="about">About </h2> <p>You can try out tree-sitter with a few pre-selected grammars on this page. You can also run playground locally (with your own grammar) using the <a href="/tree-sitter/cli/playground.html">CLI</a>'s <code>tree-sitter playground</code> subcommand. </p>Logging (if enabled) can be viewed in the browser's console.