diff options
author | Georg Brandl <georg@python.org> | 2020-09-01 12:52:11 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2020-09-01 12:52:11 +0200 |
commit | 54b1d0e2022bf97f3cee61cbb251b73e94ed8bcf (patch) | |
tree | b075eee9bf67a0a25ed3183a0d9af257f8930385 /doc/_static | |
parent | bb7aa2badc9f5e6e009d18cfe3d5889ea01f4725 (diff) | |
download | pygments-git-54b1d0e2022bf97f3cee61cbb251b73e94ed8bcf.tar.gz |
demo: show Pygments version in use
Diffstat (limited to 'doc/_static')
-rw-r--r-- | doc/_static/demo.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/_static/demo.js b/doc/_static/demo.js index f538492e..872c2348 100644 --- a/doc/_static/demo.js +++ b/doc/_static/demo.js @@ -23,6 +23,9 @@ languagePluginLoader.then(() => { } } + var ver = pyodide.runPython('pygments.__version__'); + document.getElementById("try-version").innerText = "Pygments version: " + ver; + document.getElementById("hlbtn").disabled = false; document.getElementById("loading").style.display = "none"; }); |