#3 Specific PHP formatting options

closed
nobody
None
5
2001-10-21
2001-05-22
Anonymous
No

It would be nice to see some formatting options
specific to php-mode.el; i.e. such that are not
inherited from c-mode.

A typical construct from my PHP-code:

if (isset ($as) && strlen ($as) > 0)
{
}
else
doo_foo ();

Whereas in c-mode, I often use

if (i) {
}
else
doo_foo ();

Discussion

  • Turadg Aleahmad

    Turadg Aleahmad - 2001-10-21
    • status: open --> closed
     
  • Turadg Aleahmad

    Turadg Aleahmad - 2001-10-21

    Logged In: YES
    user_id=137402

    Thanks for your input.

    Since php-mode inherits the indenting from c-mode, to implement
    any different indenting logic would require creating a new major
    mode from scratch.

    I have no intention of doing this. :) Volunteers, of course,
    are welcome.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks