npm install etab``js`
var etab = new ElasticTabstops
etab.processLines(document.querySelectorAll('.code-line'))
Here is the user script for supporting elastic tabstops on github (note currently only tested under tempermonkey).
After installing it, you could try some samples in your browser:
* https://github.com/hax/etab/blob/master/src/index.js
* https://github.com/hax/etab/blob/master/src/github-head.js
* https://github.com/hax/etab/blob/master/example/hanging-punc.js
- [SP]right aligned[TAB]
- left aligned[SP][TAB]
- [SP]center aligned[SP][TAB]
- 3.14159 (decimal aligned)[TAB]`