Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

etab

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

etab

Elastic Tabstops

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

Elastic Tabstops JavaScript Implementation for Browsers

Usage

var etab = new ElasticTabstops
etab.processLines(document.querySelectorAll('.code-line'))

Examples

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:

TODO

Core

  • try to utilize CSS tab-size
  • indent width (normally wide than tab min width for align)
  • detect tab size of the source
  • extension of alignment:
    • auto aligned[TAB]
    • [SP]right aligned[TAB]
    • left aligned[SP][TAB]
    • [SP]center aligned[SP][TAB]
    • 3.14159 (decimal aligned)[TAB]

Github user script

  • test Firefox (with Geasemonkey)
  • test IE (with ?)
  • add settings button and dialog
  • allow change font, tab width and other configurations
  • support diff view
  • only process the code block that use elastic tabstops

Keywords

FAQs

Package last updated on 02 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc