/* 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;
/* 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;
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[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?
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.
Here is the assembler request thread:
"Custom Tabstops" (Help forum)
http://sourceforge.net/forum/forum.php?thread_id=1880188&forum_id=331754
please see http://forums.codeblocks.org/index.php/topic,8176.0.html
animation of my idea
http://www.geocities.com/cdavidrp/request/ani-request-commentAlignment.gif