Menu

Format selection

2007-02-04
2012-11-13
  • Nobody/Anonymous

    I am interested in formatting C++ code.  I hate to make the reference, but in MS Visual C++, it is possible to selection some text, then choose "format selection" and the editor will automatically reformat the text into the C++ style.  How do I do this with N++?
    Thanks,
    Joe

     
    • Nobody/Anonymous

      I want to know this as well, thanks!

       
    • Nobody/Anonymous

      If you mean autoindent for selected code select "TextFX->TextFX Edit->Reindent C++ code".

      Best Regards
      Jens

       
      • Nobody/Anonymous

        is this possible for XML, too?

         
        • Nobody/Anonymous

          Well, there's a pretty-print reformatting possible with TextFX > TextFX HTML Tidy, although you'll need to search for info on setting it up to give you what you want.  Search this forum and the link given in the menuitem "Visit HTML Tidy SourceForge website".

          Also consider the XML Tools plugin by Nicolas Crittin: http://notepad-plus.sourceforge.net/uk/download.php

           
          • Nobody/Anonymous

            Thanks for the tip. I'm using the XML Tools plugin now: it works like a charm!

             
MongoDB Logo MongoDB