clean up code (auto tabs,insertion)

2. Help
2006-01-17
2012-11-13
  • hello
    I'm just switching from textpad to notepad++. looks good so far. is there a way to clean up my code htm/php with the insertions? so that this code:

    if(bla) {
    bla
    for (bla)
    {
    blabla
    }
    }

    going to something like:
    if(bla) {
      bla
      for (bla)
      {
        blabla
      }
    }

    thx a lot and cheers
    tlz

     
    • Sourceforge doesn't preserve your leading spaces but you can try Plugins | TextFX Edit | Reindent C++ code. PHP looks a lot like C++ and the little PHP code I've tested reindents quite well.