#11 Treat PHP tags like braces: indentation

open
None
2
2008-04-10
2002-06-19
Anonymous
No

I'd like to be able to have the PHP start/end tags cause
code within them to be indented by one level, e.g.
<?php
if (foobar()) crunchly();
?>
This might be something I could contrive myself if I
understood c-mode better; if it's easy but not commonly
requested then perhaps you could add a note in the
documentation on how to do it?

Discussion

  • Logged In: NO

    Of course when shown in HTML all my spaces disappeared.
    Well you know what I meant.

    NB. The email address is real even if SourceForge doesn't
    show it.

     
    • priority: 5 --> 2
    • assigned_to: nobody --> ashawley
     
  • Logged In: YES
    user_id=25294
    Originator: NO

    I may have something to add to the documentation for this.