| | | | |
| Offset 19530, 14 lines modified | Offset 19530, 82 lines modified |
| 19530 | .gopclntab | 19530 | .gopclntab |
| 19531 | .go.buildinfo | 19531 | .go.buildinfo |
| 19532 | .dynamic | 19532 | .dynamic |
| 19533 | .got.plt | 19533 | .got.plt |
| 19534 | .noptrdata | 19534 | .noptrdata |
| 19535 | .noptrbss | 19535 | .noptrbss |
| 19536 | .note.go.buildid | 19536 | .note.go.buildid |
| | 19537 | templatesUT |
| | 19538 | templates/index.html.tmplUT |
| | 19539 | _<!doctype·html> |
| | 19540 | ··<title>Chroma·Playground</title> |
| | 19541 | ··<link·rel="stylesheet"·href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"/> |
| | 19542 | ··<style> |
| | 19543 | ····textarea·{ |
| | 19544 | ······font-family:·Consolas,·Monaco,·Lucida·Console,·Liberation·Mono,·DejaVu·Sans·Mono,·Bitstream·Vera·Sans·Mono,·Courier·New,·monospace; |
| | 19545 | ····#output·{ |
| | 19546 | ······{{.Background}}; |
| | 19547 | ····#output·pre·{ |
| | 19548 | ······padding:·0; |
| | 19549 | ··</style> |
| | 19550 | ··<script·src="static/index.js?{{.Version}}"></script> |
| | 19551 | <div·class="container"> |
| | 19552 | ··<h1·class="title">Chroma·Playground</h1> |
| | 19553 | ··<div·class="notification"> |
| | 19554 | ····<a·href="https://github.com/alecthomas/chroma">Chroma</a>·is·a·general·purpose·syntax·highlighter·in·pure·Go. |
| | 19555 | ····It·takes·source·code·and·other·structured·text·and·converts·it·into·syntax·highlighted·HTML,·ANSI-coloured·text, |
| | 19556 | ····etc.·Chroma·is·based·heavily·on·Pygments,·and·includes·translators·for·Pygments·lexers·and·styles. |
| | 19557 | ··</div> |
| | 19558 | ··<form·id="chroma"·method="post"> |
| | 19559 | ····{{·.CSRFField·}} |
| | 19560 | ····<div·class="columns"> |
| | 19561 | ······<div·class="column·field"> |
| | 19562 | ········<label·class="label">Language</label> |
| | 19563 | ········<div·class="control"> |
| | 19564 | ··········<div·class="select"> |
| | 19565 | ············<select·name="language"·id="language"> |
| | 19566 | ··············<option·value=""·disabled{{if·eq·""·$.SelectedLanguage}}·selected{{end}}>Language</option> |
| | 19567 | ··············{{-·range·.Languages}} |
| | 19568 | ················<option·value="{{.}}"{{if·eq·.·$.SelectedLanguage}}·selected{{end}}>{{.}}</option> |
| | 19569 | ··············{{-·end}} |
| | 19570 | ············</select> |
| | 19571 | ··········</div> |
| | 19572 | ········</div> |
| | 19573 | ······</div> |
| | 19574 | ······<div·class="column·field"> |
| | 19575 | ········<label·class="label">Style</label> |
| | 19576 | ········<div·class="control"> |
| | 19577 | ··········<div·class="select"> |
| | 19578 | ············<select·name="style"·id="style"> |
| | 19579 | ··············<option·value=""·disabled{{if·eq·""·$.SelectedStyle}}·selected{{end}}>Style</option> |
| | 19580 | ··············{{-·range·.Styles}} |
| | 19581 | ················<option·value="{{.}}"{{if·eq·.·$.SelectedStyle}}·selected{{end}}>{{.}}</option> |
| | 19582 | ··············{{-·end}} |
| | 19583 | ············</select> |
| | 19584 | ··········</div> |
| | 19585 | ········</div> |
| | 19586 | ······</div> |
| | 19587 | ····</div> |
| | 19588 | ····<div·class="field"> |
| | 19589 | ······<label·class="label">Code</label> |
| | 19590 | ······<div·class="control"> |
| | 19591 | ········<textarea·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"·class="textarea"·id="text"·name="text"·rows="25"·cols="80"></textarea> |
| | 19592 | ······</div> |
| | 19593 | ····</div> |
| | 19594 | ····<hr> |
| | 19595 | ····<label·class="checkbox·is-pulled-right"> |
| | 19596 | ······<input·name="html"·id="html"·type="checkbox"> |
| | 19597 | ······Show·HTML |
| | 19598 | ····</label> |
| | 19599 | ····<label·class="label"> |
| | 19600 | ······Output |
| | 19601 | ····</label> |
| | 19602 | ····<div·class="field·box"·id="output"></div> |
| | 19603 | ··</form> |
| | 19604 | </html>PK |
| 19537 | staticUT | 19605 | staticUT |
| 19538 | static/index.jsUT | 19606 | static/index.jsUT |
| 19539 | _document.addEventListener("DOMContentLoaded",·function·()·{ | 19607 | _document.addEventListener("DOMContentLoaded",·function·()·{ |
| 19540 | ····var·style·=·document.createElement('style'); | 19608 | ····var·style·=·document.createElement('style'); |
| 19541 | ····var·ref·=·document.querySelector('script'); | 19609 | ····var·ref·=·document.querySelector('script'); |
| 19542 | ····ref.parentNode.insertBefore(style,·ref); | 19610 | ····ref.parentNode.insertBefore(style,·ref); |
| 19543 | ····var·form·=·document.getElementById('chroma'); | 19611 | ····var·form·=·document.getElementById('chroma'); |
| Offset 19608, 77 lines modified | Offset 19676, 9 lines modified |
| 19608 | ····languageSelect.addEventListener('change',·eventHandler); | 19676 | ····languageSelect.addEventListener('change',·eventHandler); |
| 19609 | ····styleSelect.addEventListener('change',·eventHandler); | 19677 | ····styleSelect.addEventListener('change',·eventHandler); |
| 19610 | ····htmlCheckbox.addEventListener('change',·eventHandler); | 19678 | ····htmlCheckbox.addEventListener('change',·eventHandler); |
| 19611 | ····textArea.addEventListener('input',·debouncedEventHandler); | 19679 | ····textArea.addEventListener('input',·debouncedEventHandler); |
| 19612 | ····textArea.addEventListener('change',·debouncedEventHandler); | 19680 | ····textArea.addEventListener('change',·debouncedEventHandler); |
| 19613 | templatesUT | 19681 | templatesUT |
| 19614 | templates/index.html.tmplUT | 19682 | templates/index.html.tmplUT |
| 19615 | _<!doctype·html> | |
| 19616 | ··<title>Chroma·Playground</title> | |
| 19617 | ··<link·rel="stylesheet"·href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"/> | |
| 19618 | ··<style> | |
| 19619 | ····textarea·{ | |
| 19620 | ······font-family:·Consolas,·Monaco,·Lucida·Console,·Liberation·Mono,·DejaVu·Sans·Mono,·Bitstream·Vera·Sans·Mono,·Courier·New,·monospace; | |
| 19621 | ····#output·{ | |
| 19622 | ······{{.Background}}; | |
| 19623 | ····#output·pre·{ | |
| 19624 | ······padding:·0; | |
| 19625 | ··</style> | |
| 19626 | ··<script·src="static/index.js?{{.Version}}"></script> | |
| 19627 | <div·class="container"> | |
| 19628 | ··<h1·class="title">Chroma·Playground</h1> | |
| 19629 | ··<div·class="notification"> | |
| 19630 | ····<a·href="https://github.com/alecthomas/chroma">Chroma</a>·is·a·general·purpose·syntax·highlighter·in·pure·Go. | |
| 19631 | ····It·takes·source·code·and·other·structured·text·and·converts·it·into·syntax·highlighted·HTML,·ANSI-coloured·text, | |
| 19632 | ····etc.·Chroma·is·based·heavily·on·Pygments,·and·includes·translators·for·Pygments·lexers·and·styles. | |
| 19633 | ··</div> | |
| 19634 | ··<form·id="chroma"·method="post"> | |
| 19635 | ····{{·.CSRFField·}} | |
| 19636 | ····<div·class="columns"> | |
| 19637 | ······<div·class="column·field"> | |
| 19638 | ········<label·class="label">Language</label> | |
| 19639 | ········<div·class="control"> | |
| 19640 | ··········<div·class="select"> | |
| 19641 | ············<select·name="language"·id="language"> | |
| 19642 | ··············<option·value=""·disabled{{if·eq·""·$.SelectedLanguage}}·selected{{end}}>Language</option> | |
| 19643 | ··············{{-·range·.Languages}} | |
| 19644 | ················<option·value="{{.}}"{{if·eq·.·$.SelectedLanguage}}·selected{{end}}>{{.}}</option> | |
| 19645 | ··············{{-·end}} | |
| 19646 | ············</select> | |
| 19647 | ··········</div> | |
| 19648 | ········</div> | |
| 19649 | ······</div> | |
| 19650 | ······<div·class="column·field"> | |
| 19651 | ········<label·class="label">Style</label> | |
|
Max diff block lines reached; 61/6121 bytes (1.00%) of diff not shown.
|