I have noticed when modifying code from other companies That they have changed the color of there important notices to white. This is a wonderful Idea as it draws attention to that notice in the middle of all that green text. How is this done?
I have noticed when modifying code from other companies That they have changed the color of there important notices to white. This is a wonderful Idea as it draws attention to that notice in the middle of all that green text. How is this done?
I change the color of text in the DDS. There is an attribute where you can specify any one of several colors: BLU, GRN, PNK, RED, TRQ, etc. Also, change a display attribute to HIGHLIGHT (I forget the abbreviation - HI perhaps) will make text appear white on my screens. I am not at work now, so I cannot cut and paste the exact line from my DDS's. I'll do that tomorrow if you need more specifics.
Here is the code for a utility program that will let you colorize your source code. This zip file has the command, display file, rpg program and clp program. You can do a CPYFRMPCD to a source file. It takes you into your source and diplays a window with color selections for many colors. Enjoy.
If your talking about changing the attributes of the source, you need to use a file edit utility, like DBU, to modify the source code to have a hex value at the beginning of the line (or whereever you want it to start). I'll lookup the documentation I have but off the top of my head, I think most of the values are in the twenty range. i.e. x'20', x'21' . . . x'29'
Run this REXX, then use F15=Browse to copy colors from QTEMP/COLORS/COLORS."CRTSRCPF FILE(QTEMP/COLORS) MBR(COLORS)" "OVRDBF FILE(STDOUT) TOFILE(QTEMP/COLORS) MBR(COLORS)" Do X = 1 To 32 Say Right( X, 4, '0' ) || '00000000' || D2C( X + 31 ) D2X( X + 31 ) End X
Having trouble using using program. Everything compiled, runs fine but doesn't change text color. Any instructions?
Check out www.rpgalive.com bobh
If your using Client Access Express, you can also use a key combination that will place the hex value in CC1 while your in SEU. I have CTRL-W set for white text using: apl 22 Terry
Steve - Are you calling 'COLORTEXT' with your library/file/member and going into the utility? Place the cursor just before the * of a comment line and take F9. Put an 'X' beside the color you'd like and hit ENTER. There shouldn't be very much to it. Let me know if this isn't the case.
Steve, I had the same problem. Some of the color hex values were incorrect. I had to DBU the source member to set them correctly before it would work. HTH, Cheryl