D 2014-11-07T18:58:31.777 L phptags\stag\stidier N text/x-markdown P 68cde550163999d5a90aedf8da9a197c48e73b4b U mario W 1513

phptags

phptags is a simple command-line tool to automate the alteration of open and close tags in PHP scripts. * It can convert between short ` and long ` open tokens. * Add missing `?>` close tokens. * Excise `?>` close tags. * Correct leading or trailing `␣` whitespace / UTF-8 BOM issues around them. It utilizes either regex and/or the tokenizer.

project pages

* http://freshcode.club/projects/phptags#~updates * http://include-once.org/p/phptags/#~download * http://fossil.include-once.org/phptags#~repository * http://apt.include-once.org/#~packages

usage examples

* phptags --whitespace *.php cleans up spaces or UTF-8 BOM issues before opening and after close tags * phptags --warn directory/ searches through a directory and just warns about whitespace issues * phptags --close --long --tokenizer *.php adds close tags, converts open tags into long form <?php and uses the more reliable --tokenizer mode (instead of --regex) * phptags --unclosed --shortall dir/ ../*.tpl includes/ 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 --help or the [manpage] [http://fossil.include-once.org/phptags/finfo?name=manpage.1|^] for the complete reference. Z 93e000c94bbc4a8a5fa6f4f1c73d8674