Home > AS/400 Tips > iSeries programmer tips > Coloring made easy
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES PROGRAMMER TIPS

Coloring made easy


Jeff Lang
06.10.2003
Rating: -2.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This is an different take on Navee Dronavalli's Tip: Add some colors to your sources. Using the Client-iSeries Access Popup Keypad, it reduces the effort of inserting hex codes to change the display attributes of text to a Right Click/Left Click operation. In addition to colorizing source code, it's also great for dynamically highlighting or color coding text data, etc.

Some setup is required. Copying and pasting the appropriate pieces of the included code into correctly named macro and KeyPad customization files can be accomplished in about 10 minutes. (You can use the files that are placed in the same directory on your PC as the Client-iSeries Access connection and workstation profiles.

All that is left is to configure your WorkStation Emulation session to use the created Color.pmp file as a User Defined Popup-Keypad-File (see Client-iSeries Access Help for instructions).

To use: Place your session cursor where you want the code to reside, right-click on your mouse to display this keypad, and left-click the appropriate button.



Code

   
  
[COLOR.PMP (Popup Keypad Customization File)]

[Profile]
id=PMP
Description=
PoppadInfo=2,4,8

[POPPAD]
POP1-1-1=MACRO BLUE
POP1-1-2=MACRO GREEN
POP1-1-3=MACRO PINK
POP1-1-4=MACRO RED
POP1-1-5=MACRO REDUL
POP1-1-6=MACRO TURQCSRI
POP1-1-7=MACRO WHITERI
POP1-1-8=MACRO YELLOWUL
POP1-2-1=MACRO BLUERI
POP1-2-2=MACRO GREENRI
POP1-2-3=MACRO PINKRI
POP1-2-4=MACRO REDBL
POP1-2-5=MACRO REDULBL
POP1-2-6=MACRO TURQUL
POP1-2-7=MACRO WHITEUL
POP1-2-8=[dead]
POP1-3-1=MACRO BLUEUL
POP1-3-2=MACRO GREENUL
POP1-3-3=MACRO PINKUL
POP1-3-4=MACRO REDRI
POP1-3-5=MACRO REDULRI
POP1-3-6=MACRO TURQULRI
POP1-3-7=MACRO YELLCSRI
POP1-3-8=[dead]
POP1-4-1=MACRO NONDSP
POP1-4-2=MACRO GRNULRI
POP1-4-3=MACRO PINKULRI
POP1-4-4=MACRO REDRIBL
POP1-4-5=MACRO TURQCS
POP1-4-6=MACRO WHITE
POP1-4-7=MACRO YELLOWCS
POP1-4-8=[dead]
POP2-1-1=[pf1]
POP2-1-2=[pf5]
POP2-1-3=[pf9]
POP2-1-4=[pf13]
POP2-1-5=[pf17]
POP2-1-6=[pf21]
POP2-1-7=[roll down]
POP2-1-8=[dup]
POP2-2-1=[pf2]
POP2-2-2=[pf6]
POP2-2-3=[pf10]
POP2-2-4=[pf14]
POP2-2-5=[pf18]
POP2-2-6=[pf22]
POP2-2-7=[roll up]
POP2-2-8=[help]
POP2-3-1=[pf3]
POP2-3-2=[pf7]
POP2-3-3=[pf11]
POP2-3-4=[pf15]
POP2-3-5=[pf19]
POP2-3-6=[pf23]
POP2-3-7=[local copy]
POP2-3-8=[host print]
POP2-4-1=[pf4]
POP2-4-2=[pf8]
POP2-4-3=[pf12]
POP2-4-4=[pf16]
POP2-4-5=[pf20]
POP2-4-6=[pf24]
POP2-4-7=[sys attn]
POP2-4-8=[test request]

[Color]
Window1Bk=0,0,0
Pad1Text=0,128,192
POP1-1-1=128,128,128,0,0,255,192,192,192, , ,
POP1-1-2=128,128,128,0,170,0,192,192,192, , ,
POP1-1-3=128,128,128,255,0,255,192,192,192, , ,
POP1-1-4=128,128,128,255,0,0,192,192,192, , ,
POP1-1-5=128,128,128,255,0,0,192,192,192, , ,
POP1-1-6=0,255,255, , , ,192,192,192, , ,
POP1-1-7=255,255,255, , , , , , , , ,
POP1-1-8=128,128,128,255,255,0, , , , , ,
POP1-2-1=0,0,255, , , ,192,192,192, , ,
POP1-2-2=0,170,0, , , ,192,192,192, , ,
POP1-2-3=255,0,255, , , ,192,192,192, , ,
POP1-2-4=128,128,128,255,0,0,192,192,192, , ,
POP1-2-5=128,128,128,255,0,0,192,192,192, , ,
POP1-2-6=128,128,128,0,255,255,192,192,192, , ,
POP1-2-7=128,128,128,255,255,255, , , , , ,
POP1-2-8=128,128,128, , , , , , , , ,
POP1-3-1=128,128,128,0,0,255,192,192,192, , ,
POP1-3-2=128,128,128,0,170,0,192,192,192, , ,
POP1-3-3=128,128,128,255,0,255,192,192,192, , ,
POP1-3-4=255,0,0, , , ,192,192,192, , ,
POP1-3-5=255,0,0, , , ,192,192,192, , ,
POP1-3-6=0,255,255, , , ,192,192,192, , ,
POP1-3-7=255,255,0, , , , , , , , ,
POP1-3-8=128,128,128, , , , , , , , ,
POP1-4-1=128,128,128,130,130,130,192,192,192, , ,
POP1-4-2=0,170,0, , , ,192,192,192, , ,
POP1-4-3=255,0,255, , , ,192,192,192, , ,
POP1-4-4=255,0,0, , , ,192,192,192, , ,
POP1-4-5=128,128,128,0,255,255,192,192,192, , ,
POP1-4-6=128,128,128,255,255,255,192,192,192, , ,
POP1-4-7=128,128,128,255,255,0, , , , , ,
POP1-4-8=128,128,128, , , , , , , , ,

[Green.mac (Green macro file)]
Description =
apl 20_

[GreenRI.mac (Green Reverse Image macro file)]
Description =
apl 21_

[White.mac (White macro file)]
Description =
apl 22_

[WhiteRI.mac (White Reverse Image macro file)]
Description =
apl 23_

[GreenUL.mac (Green Underline macro file)]
Description =
apl 24_

[GrnULRI.mac (Green Underline Reverse Image macro file)]
Description =
apl 25_

[WhiteUL.mac (White Underline macro file)]
Description =
apl 26_

[NonDsp.mac (Non-Display macro file)]
Description =
apl 27_

[Red.mac (Red macro file)]
Description =
apl 28_

[RedRI.mac (Red Reverse Image macro file)]
Description =
apl 29_

[RedBL.mac (Red Blinking macro file)]
Description =
apl 2a_

[RedRIBL.mac (Red Reverse Image Blinking macro file)]
Description =
apl 2b_

[RedUL.mac (Red Underline macro file)]
Description =
apl 2c_

[RedULRI.mac (Red Underline Reverse Image macro file)]
Description =
apl 2d_

[RedULBL.mac (Red Underline Blinking macro file)]
Description =
apl 2e_

[TurqCS.mac (Turquoise Column Separator macro file)]
Description =
apl 30_

[TurqCSRI.mac (Turquoise Column Separator Reverse Image macro file)]
Description =
apl 31_

[YellowCS.mac (Yellow Column Separator macro file)]
Description =
apl 32_

[YellCSRI.mac (Yellow Column Separated Reverse Image macro file)]
Description =
apl 33_

[TurqUL.mac (Turquoise Underline macro file)]
Description =
apl 34_

[TurqULRI.mac (Turquoise Underline Reverse Image macro file)]
Description =
apl 35_

[YellowUL.mac (Yellow Underline macro file)]
Description =
apl 36_

[Pink.mac (Pink macro file)]
Description =
apl 38_

[PinkRI.mac (Pink Reverse Image macro file)]
Description =
apl 39_

[Blue.mac (Blue macro file)]
Description =
apl 3a_

[BlueRI.mac (Blue Reverse Image macro file)]
Description =
apl 3b_

[PinkULRI.mac (Pink Underline Reverse Image macro file)]
Description =
apl 3d_

[PinkUL.mac (Pink Underline macro file)]
Description =
apl 3c_

[BlueUL.mac (Blue Underline macro file)]
Description =
apl 3e_

  

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Application Development
iSeries calling an .exe
Top 10 programmer tips
Formatted work job scheduler
Convert system date and time
Mixing free format code with embedded SQL
SQL update a field in one file from a field in another file
Webcasts for iSeries programmers
Programming advice from the pros
Easy code copying via the drag and drop method
Setting FTP time-outs

iSeries programmer tips
Enhancing RPG with external SQL stored procedures
Tracking data changes on IBM i with triggers
Introduction to SQLRPGLE on IBM i: Making a report
Implementing a browser interface in COBOL: Displaying database fields
Taking advantage of CL advancements, starting with V5R3
TAATOOL: Useful tools for programmers on IBM i
Implementing a browser interface in COBOL: Creating your graphic Web page
Implementing a browser interface in COBOL: Getting started
Making the most of RPG data handling on IBM i
Groovy programming on IBM i

iSeries CL programming
Taking advantage of CL advancements, starting with V5R3
Checking in on your IBM i authorization lists
Running PHP open source applications: NOBODY needs authority
Simplify the process of converting a spool file from iSeries into an Excel spreadsheet
CL program for daily backups
An automated CL method of moving a query from AS/400 to Excel
Changing user password expiration
Eight steps for creating program documentation using AS/400 utilities
DAYSPAST CLLE program for AS/400: Compares object creation date with today's date
Advanced Job Scheduler help

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts