𝌔 Fossil Hub
Login | Fossil manual |
phptags tag tidier

Check-in [a21e117c49]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added fpm pack: info
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a21e117c494e33da82b7ff5043a627de2b0d4072
User & Date: mario 2014-11-24 00:23:07
Context
2014-11-24
00:23
Transitioned to -t src for all package builds. check-in: 77e426264b user: mario tags: trunk
00:23
Added fpm pack: info check-in: a21e117c49 user: mario tags: trunk
2014-11-13
19:44
Mention hard and soft "close tag" variations; rename BUGS section to "REGEX VS TOKENIZER" check-in: 29a0f0519b user: mario tags: trunk
Changes

Changes to phptags.

1
2
3
4
5
6
7
8
9
10

11
12
13


14

15
16
17
18
19
20
21
#!/usr/bin/php -qCdshort_open_tag=1 
<?php
/**
 * api: cli
 * type: application
 * title: PHP tag tidier
 * description: Rewrites PHP scripts' short/long open tags, close tags, apply whitespace fixes
 * version: 1.2
 * license: Public Domain
 * author: mario <mario#include-once:org>

 * category: utilities
 * config: <file type="array" value="$HOME/.config/php/phptags.php" title="configuration defaults file" description="an ordinary return(array(...)); script to set interna options like regex=>1 or verbose=>1" />
 * url: http://freshcode.club/projects/phptags


 * 

 * Simple command-line tool to rewrite PHP <?php open tags into
 * long and short forms, adding or removing the closing ?> token,
 * probing or removal of trailing whitespace and hidden markers
 * (e.g. UTF-8 BOM, or NUL bytes).
 *
 * A simple invocation that rewrites all *.php scripts in a given
 * directory (recursively) is:






|



>



>
>

>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/php -qCdshort_open_tag=1 
<?php
/**
 * api: cli
 * type: application
 * title: PHP tag tidier
 * description: Rewrites PHP short/long open tags, close tags, fixes whitespace padding
 * version: 1.2
 * license: Public Domain
 * author: mario <mario#include-once:org>
 * architecture: all
 * category: utilities
 * config: <file type="array" value="$HOME/.config/php/phptags.php" title="configuration defaults file" description="an ordinary return(array(...)); script to set interna options like regex=>1 or verbose=>1" />
 * url: http://freshcode.club/projects/phptags
 * pack: phptags=/usr/bin/phptags, *.1=/usr/share/man/man1/phptags.1,
 *       README=/usr/share/doc/phptags/README, NEWS=/usr/share/doc/phptags/NEWS
 * 
 *
 * Simple command-line tool to rewrite PHP <?php open tags into
 * long and short forms, adding or removing the closing ?> token,
 * probing or removal of trailing whitespace and hidden markers
 * (e.g. UTF-8 BOM, or NUL bytes).
 *
 * A simple invocation that rewrites all *.php scripts in a given
 * directory (recursively) is: