Menu

[request] Please adhere edit/comments to RIGH

CDR
2008-05-09
2012-11-13
  • CDR

    CDR - 2008-05-09

    [request for next version of notePad++]
    Please adhere edit/comments to RIGHT edge

    Adjust comments to a vertical line position (RIGHT)
    Note: The comments that started in the first column, do not Adjust

    example:   before comments misalignment
    http://www.geocities.com/cdavidrp/request/request-commentAlignmentMenu.jpg

    /* Config ports microcontroller
        Motorola GP32 */
    typedef union {
      byte Byte;
      struct {
        byte PTA0        :1;                    // Port  A Data Bit 0
        byte PTA1        :1;                                       // Port A  Data Bit 1
        byte PTA2        :1;                         // Port A Data Bit 2
        byte PTA3        :1;                              // Port A Data Bit 3
        byte PTA4        :1;                  // Port A Data Bit 4
        byte PTA5        :1;                            // Port A Data Bit 5
        byte PTA6        :1;                                       // Port A Data Bit 6
        byte PTA7        :1;        // Port A Data Bit 7
      } Bits;
    } PTASTR;

    -----------------------------
    Later comments alignment
    ----------------------------
    http://www.geocities.com/cdavidrp/request/request-commentAlignment.jpg

    /* Config ports microcontroller
        Motorola GP32 */
    typedef union {
      byte Byte;
      struct {
        byte PTA0        :1;                // Port A Data Bit 0
        byte PTA1        :1;                // Port A Data Bit 1
        byte PTA2        :1;                // Port A Data Bit 2
        byte PTA3        :1;                // Port A Data Bit 3
        byte PTA4        :1;                // Port A Data Bit 4
        byte PTA5        :1;                // Port A Data Bit 5
        byte PTA6        :1;                // Port A Data Bit 6
        byte PTA7        :1;                // Port A Data Bit 7
      } Bits;
    } PTASTR;

    http://www.geocities.com/cdavidrp/request/request-commentMisalignment.jpg
    Is good idea?

     
    • Fool4UAnyway

      Fool4UAnyway - 2008-05-09

      I believe there have been similar requests for assembler alignment.

      These all feel like formatting code features, if you want the editor to change the spacing by adding or deleting tabs or space characters. Perhaps you may find a tool that could do this for you.

      The example helps to illustrate the wish, but the input code of course isn't that good an example of nice programming. Why would anyone write their code that way?

      An other option might be, as asked for the assembler alignment, to have some spacing per tab character/column. Since there have been requests for a per-language tab size setting, perhaps when this is implemented it will also be possible to have a set of custom in-line tab positions as well. However, this would lead to another visible format and probably "garbage" when the code is viewed in a simple program like Notepad.

      What do you really want it to be?

      I think using any available format tool may be the fastest way to get the results you want.

       
    • CDR

      CDR - 2008-05-09
       
    • CDR

      CDR - 2008-05-09