Menu

tab

2004-11-15
2012-12-07
  • Jeremy Powers

    Jeremy Powers - 2004-11-15

    ok, when i something like

    if(isset($_POST['editprefs'])){
    $sql -> db_Update("links", "ORDERNUM=".$action3."+1 WHERE ID='$id'");

    then hit tab for the line following the if command it moves it all the way to the end of the tab command, and that makes for lots of annyoying whitespace expecially in a web based editor

     
    • Sven Ratzlaff

      Sven Ratzlaff - 2004-11-15

      This is when you have "Smart Tabs" on and its a normal behaviour of the "SynEdit-Component". Placing a "space" anywhere in the "if-line" will let position the next line to the following character after the space. Even the delphi-editor has this "feature" and for me it looks ok, but that's a "matter of taste"...*g*

       
    • Andrew Murphy

      Andrew Murphy - 2004-11-15

      I'm having a similar problem all of a sudden. I normally just use the "two spaces" method for tabbing, but after reading this post I tried to use the actual tab key.

      Strangely, I had some rather unexpected results; tab size had no effect. The editor automatically tabbed the code out essentially 4 spaces, 2 spaces and a "2 space tab," as this was with tab size set to 1.

      For the most part, I personally am not affected by this quirk, as I said, I use the "two spaces" method, however, I can imagine this being annoying for a lot of people.

      ps: I know I must be annoying the snot out of you Leonardo, but it would be spiffy if Dev-PHP didn't translate my 2 spaces tabs into actual tab characters (2 spaces = 1 tab) whenever i do a new line. Maybe a toggle on the config menu? If this is a problem with the Syn-Edit, perhaps Dev-PHP could do a search and replace for tabs, assuming a use white spaces toggle is set to true.

      just a wish, though.

       

Log in to post a comment.