𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Artifact [06dcdf60d0]

Artifact 06dcdf60d0b543000a04458bdf4d237c4d08b77f:

Wiki page [phptags tag tidier] by mario 2012-01-09 03:08:51.
D 2012-01-09T03:08:51.235
L phptags\stag\stidier
P 336c90521ff41443571df3fbb11cdbdfa10b1c66
U mario
W 1178
<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  dir/ ../*.tpl includes/</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] [http://fossil.include-once.org/phptags/finfo?name=manpage.1|^] for the complete reference.

Z 38fac949fd28326c35230c192d1173b4