Menu

"Adjust" text according to the brackets

odrys
2008-05-09
2012-09-26
  • odrys

    odrys - 2008-05-09

    Is there any tool for this?
    ( this: if(){ to become like that if(){
    if(){ if(){
    } }
    } }
    )

     
    • odrys

      odrys - 2008-05-09

      It makes no sense(didn't seem like that when I wrote it).I think you got it.

       
    • cpns

      cpns - 2008-05-09

      The forum renders text in HTML, which ignores and removes leading whitespace on a line.

      To be honset I have no idea what you are asking.

      Try inserting leading dots to indicate formatting, like thie:

      if()
      {
      ....if()
      ....{
      ........// comment
      ....}
      }

      If you are asking about code reformatting, Dev-C++ does not do that. VC++2008 Express will do however - that is what I use when I need to make sense of code posted here. (Ctrl+K, Ctrl+F in Visual Studio BTW).

      You could use a tool such as GreatCode, but frankly it is a bit of a dog.

       
    • odrys

      odrys - 2008-05-14

      I think you answered my question.
      For the record what I meant was:
      this:
      if(){
      if(){
      ...
      }
      }
      to become like this:
      if(){
      ....if(){
      .........
      ....}
      }

       
    • cpns

      cpns - 2008-05-14

      I perfer my bracing style, but yes I answered your question.

      Of course, writing it indented in the first place is not so hard!

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.