Loading ...
Sorry, an error occurred while loading the content.

Code Spacing Tool

Expand Messages
  • Mark Kahn
    I just put a code spacing tool on the wiki if anyone is interested: http://editplus.info/wiki/User_Tools#Fix_Code_Spacing examples: Input: ======
    Message 1 of 1 , May 2, 2006
    • 0 Attachment
      I just put a code spacing tool on the wiki if anyone is interested:
      http://editplus.info/wiki/User_Tools#Fix_Code_Spacing

      examples:

      Input:
      ======
      .text_blue_small {
      font-size:11px;
      color:#4C82D8;
      text-decoration:none;
      padding-left:10px;
      }
      #wrapper {
      background:white;
      width:800px;
      margin:0 auto;
      border:1px solid #999999;
      padding:0px;
      }
      ======

      Output:
      ======
      .text_blue_small {
      font-size : 11px;
      color : #4C82D8;
      text-decoration : none;
      padding-left : 10px;
      }
      #wrapper {
      background : white;
      width : 800px;
      margin : 0 auto;
      border : 1px solid #999999;
      padding : 0px;
      }
      ======



      Input:
      ======
      $someArray = array(
      'field'=>'data',
      'another field'=>'some more data',
      'etc'=>'etc'
      );
      ======

      Output:
      ======
      $someArray = array(
      'field' => 'data',
      'another field' => 'some more data',
      'etc' => 'etc'
      );
      ======



      Input:
      ======
      a=5;
      b=20;
      dog=30;
      some_really_really_long_variable_name=40;
      ======

      Output:
      ======
      a = 5;
      b = 20;
      dog = 30;
      some_really_really_long_variable_name = 40;
      ======




      -Mark


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.