Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
/ outdent-string Public archive

Detect and remove extraneous leading whitespace from multiline strings

License

Notifications You must be signed in to change notification settings

fvsch/outdent-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

outdent.js

An experiment to detect and remove extraneous leading whitespace from multiline strings, especially for HTML code.

Only tested in latest Firefox, Safari and Chrome (in 2014). Fair warning: this was a personal experiment, might be unstable and have subpar performance.

Documentation

There isn’t much. See this article for an introduction, and look at the outdent.js file directly.

Running the demo page

The demo can be run using PHP’s built-in development server:

php --server localhost:8000

Then open http://localhost:8000/demo.php in your browser of choice.

About

Detect and remove extraneous leading whitespace from multiline strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published