|
This can also be achieved without cutting a line of code via Client Access as follows: Changing Source Colour in SEU If you are using the IBM Client Access emulator, you can program the keyboard to enter the colors. Here's how (these directions are specifically for Client Access Express, but I think they will work in a similar way for all of the IBM emulators). 1) Choose menu option Assist==>Keyboard Setup. 2) Click User-Defined on the dialogue box.3) Click the Customize button. 4) Click on a keyboard key (let's use W). 5) Choose a key combination to enter the hex codes. Example: a) Next to Ctrl, key "apl 26" (no quotes) Ctl+W will insert a white underline hex byte b) Next to Alt, key "apl 22" (no quotes) Alt+W will insert a white hex byte c) Next to CtrlShift, key "apl 23" (no quotes) Ctl+Shft+W will insert a white reverse-image hex byte 6) For each of the colors desired, choose a different key (the first letter of each color works nicely) and enter the hex codes for that color. Here is a table of hex codes (in RPG constants format!). D cBLU C CONST(X'3A') D cGRN C CONST(X'20') D cPNK C CONST(X'38') D cRED C CONST(X'28') D cTRQ C CONST(X'30') D cWHT C CONST(X'22') D cYLW C CONST(X'32') D cBLU_RI C CONST(X'3B') D cGRN_RI C CONST(X'21') D cPNK_RI C CONST(X'39') D cRED_RI C CONST(X'29') D cTRQ_RI C CONST(X'31') D cWHT_RI C CONST(X'23') D cYLW_RI C CONST(X'33') D cBLU_UL C CONST(X'3E') D cGRN_UL C CONST(X'24') D cPNK_UL C CONST(X'3C') D cRED_UL C CONST(X'2C') D cTRQ_UL C CONST(X'34') D cWHT_UL C CONST(X'26') D cYLW_UL C CONST(X'36') 7) Choose File==>Save to update the keyboard profile. Note that you can also use this trick to highlight comments in different colors (even within the same line) and you can update object and member descriptions in PDM with these colors. We even use different colors to mark different members as to their status (e.g., blue=member needs to be updated, turquoise=member needs to be tested, pink=problem with code change, etc.). Cheers, Peter -----Original Message----- From: Phil Hayes [mailto:PHayes1@Prodigy.net] Sent: Monday, August 07, 2000 4:05 PM To: RPG400-L@midrange.com Subject: RE: Does anyone know how to change the color of source lines in SEU? Hello, I have a RPG Program for coloring Source Code. ¹ *==============================================================** ¹ * * ¹ *PROGRAM NAME........COLORRPG * ¹ *AUTHOR..............Phil Hayes * ¹ *DATE COMPLETED......NOV 9, 1999 * ¹ *PROGRAM PURPOSE.....TO COLOR ALL RPG PROGRAMS * ¹ *FILES...............QRPGSRC * ¹ * * ¹ * * ¹ * * ¹ *===============================================================* ¹ * FILE SPECIFICATIONS: * ¹ * * ¹ *===============================================================* ¹ * é FQRPGLESRC UP E DISK é F RENAME(QRPGLESRC:XXX) ¹ * ¹ *===============================================================* ¹ * INPUT SPECIFICATIONS: * ¹ *===============================================================* ¹ * ã D DS ã D SRCDTA 1 106 ã D POS6 6 6 ã D POS7 7 7 ã D POS78 7 8 ã D POS26 26 26 ã D UPD 1 1 ¹ D* ã D WHT C CONST(X'22') ã D YLW C CONST(X'32') ã D RED C CONST(X'28') ã D BLU C CONST(X'3A') ã D PNK C CONST(X'38') ¹ I* ¹ *===============================================================* ¹ * CALUCATIONS SPECIFICATIONS: * ¹ *===============================================================* ¹ *** C SELECT C POS7 WHENEQ '*' C MOVEL WHT UPD ¹ * C POS6 WHENEQ 'F' C MOVEL BLU UPD ¹ C* C POS6 WHENEQ 'O' C MOVEL WHT UPD ¹ C* C POS6 WHENEQ 'D' C MOVEL PNK UPD ¹ C* C POS78 WHENEQ 'SR' C MOVEL RED UPD ¹ C* ¹ C* C POS26 WHENEQ 'P' C MOVEL BLU UPD ¹ * C END C UPDATE XXX To get this to work properly one should execute the OVRDBF (QRPGSRC or QRPglesrc) then Delete the overide. Call the RPG color pgm. Then, press Shift F7 or F8 working with the source member inside of SEU. Presto! This is pretty easy from an entry level programmer...who can't find work. Phil +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- This communication is confidential and may be legally privileged. If it is not addressed to you, you are on notice of its status. Please immediately contact us at our cost and destroy it. Please do not use, disclose, copy, distribute or retain any of it without our authority - to do so could be a breach of confidence. Thank you for your co-operation. Please contact us on (09) 356 5800 if you need assistance. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.