JSFiddle - React, Tailwind, and code Playground

by normanzb

HTML

<div>space-on-the-right
<span>space-on-both-side space-on-both-side</span> <span>space-on-the-left</span> <pre>no-space-on-both
  2 spaces on the left
     4 spaces on the left
</pre> <div style="white-space: pre">no-space-on-both
  2 spaces on the left
     4 spaces on the left
</div>
</div>
<div id="the-script-target">    </div>
<script>
(function(){
	  var indentationSpecificationFromExample = document.getElementById('the-script-target');
    alert('the spaces used for indentation on this file is ' + indentationSpecificationFromExample.innerHTML.length);
})();
</script>