Menu

#11 Treat PHP tags like braces: indentation

open
None
2
2014-07-30
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

  • Nobody/Anonymous

    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.

     
  • Aaron S. Hawley

    Aaron S. Hawley - 2008-04-10
    • priority: 5 --> 2
    • assigned_to: nobody --> ashawley
     
  • Aaron S. Hawley

    Aaron S. Hawley - 2008-04-10

    Logged In: YES
    user_id=25294
    Originator: NO

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

     

Log in to post a comment.