𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Artifact [6a5ef4c9d6]

Artifact 6a5ef4c9d65f06818bc2985488d570bd80d6d6ae:

Wiki page [phptags tag tidier] by mario 2012-09-14 01:37:24.
D 2012-09-14T01:37:24.968
L phptags\stag\stidier
P 26dd923f613adf7a31374a3cf1a31c74f0fd422d
U mario
W 1372
<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 strip close tags.
   * Correct leading or trailing whitespace issues.

It utilizes either regex and/or the tokenizer.

<h3>project pages</h3>

  *  [http://freecode.com/projects/phptags] (updates)
  *  [http://include-once.org/p/phptags/] (homepage)
  *  [http://fossil.include-once.org/phptags] (repository)
  *  [http://apt.include-once.org/] (download)

<h3>usage examples</h3>

  *  <b>phptags --whitespace *.php</b> cleans up spaces or UTF-8 BOM issues before opening and after close tags
  *  <b>phptags --warn directory/</b> searches through a directory and just warns about whitespace issues
  *  <b>phptags --close --long --tokenizer  *.php</b> adds close tags, converts open tags into long form &lt;?php and uses the more reliable --tokenizer mode (instead of --regex)
  *  <b>phptags --unclosed --shortall  dir/ ../*.tpl includes/</b> converts all tags into short forms, and strips close tags of a document (it's advised to rather have whitespace issues fixed than keep using the newcomer workaround)

See also <b>--help</b> or the [manpage] [http://fossil.include-once.org/phptags/finfo?name=manpage.1|^] for the complete reference.

Z bab4b9b952c3dce62c87cce10f07f790