Originally Posted by dna1990
I remind new folks of a previous tip by Dean that uses the Constant Block. It allows each constant to have your own 9-character 'label'. Doesn't do anything, it is just there for visual reference to the programmer. And they are nice and organge, against what is sometimes a stream of green and teal move/motor/my blocks.
Another option is to create your own inline comment block. The attached file shows a Comment MyBlock with four text input plugs. The comment is entered by selecting the comment block and typing the comment in as the values for the four inputs.
I created the block by wiring a four pairs of comment blocks together (four Variable Read blocks followed by four Variable Write blocks). I selected the Variable Write blocks and created the MyBlock. I opened the MyBlock and deleted the contents, leaving just the data plugs.
Advantages of the Comment MyBlock is that the comments are inline and follow changes to the code. Disadvantages are that you only have 80 characters (still much better than 9), and you can only see the comment when the block is selected in the NXT editor.