Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | ad6c37a64aaa8a39555cf8a464fc0a6a1f33757e |
---|---|
Page Name: | phptags tag tidier |
Date: | 2012-01-09 03:08:39 |
Original User: | mario |
Parent: | f835e76634ef032dad48e3bcd80f1b947898f107 (diff) |
Next | 336c90521ff41443571df3fbb11cdbdfa10b1c66 |
Content
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 dir/ ../*.tpl includes/ 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. /h2