Elastic Tabstops

What are elastic tabstops?

The elastic tabstops mechanism positions tabstops automatically to fit the text between them and to align them with matching tabstops on adjacent lines. This means only a single tab has to be inserted between elements (columns), rather than inserting manually the required number of spaces or tabs to align elements on adjacent lines.

Elastic tabstops were invented by Nick Gravgaard in 2006. More information is available on his website: http://nickgravgaard.com/elastic-tabstops/.

About this module

This Textadept module was ported by Joshua Krämer from the implementation for Scintilla available here: https://github.com/nickgravgaard/ElasticTabstopsForScintilla.

Usage samples

This image (taken from Nick Gravgaard’s website) shows the automatic re-alignment of tabstops:

sample 1

Those are screenshots of Textadept with the Elastic tabstops module:

sample 2

sample 3

sample 4


Download this file: init.lua (version 2015-05-16).

Create the folder ~/.textadept/modules/elastic_tabstops/ and place the downloaded file init.lua in it.

Then add the following line to ~/.textadept/init.lua:


Restart Textadept. The Elastic tabstops mechanism will now be applied to all buffers.

Edited on Thursday, February 8th 2018 at 9:31 PM.