There used to be instructions around for generating the clippings
yourself... (I don't know where exactly) If you could find them, a few
changes and you could have your PEAR compliant set.
Alternately, you could use CodeSniffer to find all the violations and then
process them via a batch script or text factory...

http://pear.php.net/package/PHP_CodeSniffer

You can always edit the clippings by hand. [???]

(Personally I like the space the clippings provide for coding.)

2008/8/29 Morbus Iff <[EMAIL PROTECTED]>

>
>
> I understand that the PHP clippings are from
>
>   http://tedmasterweb.com/php-bbedit-clipping-set/
>
> And, while it's certainly Complete, I'm not entirely sure it's /fast
> enough/. Which is to say: when I autocomplete a clipping, I end up
> spending more time "fixing" it to match with, say, PEAR guidelines.
>
> Take strpos, for example (split multiple lines here):
>
>  int strpos ( <#string haystack#>,
>   <#mixed needle#> <#,  [int offset]#> )<#;#>
>
> To turn that into:
>
>   strpos($string, 'whee');
>
> I have to:
>
>  backspace (to remove "int"), tab, $string, tab, 'whee', tab,
>  backspace, backspace (to remove optional component and extra
>  space before ).
>
> And, on control functions like if, it's worse, where I have to turn:
>
>  if (  )
>  {
>      <##>
>  }
>  else
>  {
>      <##>
>  }
>
> into:
>
>  if () {
>      <##>
>  }
>  else {
>      <##>
>  }
>
> to match with the PEAR coding standards.
>
> Does anyone else find this to be a problem?
> Any desire to fix such a thing? Or, at least,
> write a script that "fixes" the autogenerated
> source to match more inline with PEAR?
>
>
>
>
>
> --
> Morbus Iff ( and think about the bad things that I didn't do )
> Technical: http://www.oreillynet.com/pub/au/779
> Enjoy: http://www.disobey.com/ and http://www.videounderbelly.com/
> aim: akaMorbus / skype: morbusiff / icq: 2927491 / jabber.org: morbus
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/bbedit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to