𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Artifact [39418d9f2f]

Artifact 39418d9f2f4d68aee5c8d4de9f4c5b682234f3bf:

Wiki page [phptags tag tidier] by mario 2012-01-08 22:24:29.
D 2012-01-08T22:24:29.863
L phptags\stag\stidier
P 244868afd374fb4373893a31176366df887cee8e
U mario
W 1070
<h2>phptags</h2>

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.

<h3>project pages</h3>

* [http://freecode.com/projects/phptags]
* [http://include-once.org/p/phptags/]
* [http://fossil.include-once.org/phptags]
* [http://apt.include-once.org/]

<h3>usage examples</h3>

* <b>phptags --whitespace *.php</b> cleans up spaces, UTF-8 BOM before opening and after close tags
* <b>phptags --warn directory/</b> searches through dir and just warns about whitespace issues
* <b>phptags --close --long  *.php</b> adds close tags, converts open tags into long form &lt;?php
* <b>phptags --unclosed --shortall  *.php</b> 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 <b>--help</b> or the manpage for the complete reference.

Z 1d72f6bded14954dbbcff131b1b452c1