Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Artifact ID: | 39418d9f2f4d68aee5c8d4de9f4c5b682234f3bf |
---|---|
Page Name: | phptags tag tidier |
Date: | 2012-01-08 22:24:29 |
Original User: | mario |
Parent: | 244868afd374fb4373893a31176366df887cee8e (diff) |
Next | d5668d34b62dfbdc382b7c408b3fe2a3c1e8e2aa |
phptags
phptags is a simple commandline tool to automate the rewriting of PHP open and close tags. It can convert between short and long open tags, add missing close tags or remove them again, and correct leading or trailing whitespace issues. It utilizes both regex or the tokenizer.
project pages
* http://freecode.com/projects/phptags * http://include-once.org/p/phptags/ * http://fossil.include-once.org/phptags * http://apt.include-once.org/
usage examples
* phptags --whitespace *.php cleans up spaces, UTF-8 BOM before opening and after close tags * phptags --warn directory/ searches through dir and just warns about whitespace issues * phptags --close --long *.php adds close tags, converts open tags into long form <?php * phptags --unclosed --shortall *.php converts all tags into short forms, and strips close tags of document (it's advised to rather fix whitespace than keep using that workaround)
See also --help or the manpage for the complete reference.