- Notifications
You must be signed in to change notification settings - Fork0
License
NotificationsYou must be signed in to change notification settings
freddez/html-indent
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
html-indent
is a html file indenter and checker.
It can be used for a single file, an entire tree, or from stdin (for editorplugin integration).
It supports multi-line tags, and preserves relative indentation in scripts andcomments sections. Except spaces, the document structure is preserved and theonly validation check is for balanced tags.
Usage: html-indent [FILE] [options]Options: -h, --help print this help menu -r, --recursive process all files in directory tree -e, --extension ext file extension for recursive processing -n, --dry-run dry run, don't write files --numeric output indentation value -c, --check check malformed tags -l, --lines [start]-[end] limit output to selected lines -p, --print print html result to stdout
html-indent
is written inRust. For the moment theonly option is to build it from source, soinstall Rustthen type
$ cargo install
There is aVim plugin undertools
directory. Just drop it in~/.vim/indent/
and don't forget to have
filetype plugin indent on
in your.vimrc
.
- HTML Tidy : Tidy is designed to clean-up htmlcomplete documents and I didn't succeed to indent html fragments with thecommand line version.
- GNU Emacs
editoruniverseenvironment. The includedhtml-modeandweb-mode, like manyEmacs's majormodes have implementedindent-region function. - Atom editor. Unfortunately, the indentation doesn't workwith newlines inside tags.
- Better error handling
- PHP integration
- Sublime text plugin
About
No description or website provided.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published