LPEX Edit in Hex Mode
February 20, 2008 Hey, Ted
Thanks for your article, Let WDSc Help You Format Your Source Code. Prior to using WDSc, I used a tool to colorize my RPG source code. It applied different colors to various types of lines (comments, loop structures, etc.). LPEX doesn’t seem to be able to understand the hex code and displays box symbols for the hex value. Is there something in the parser controls that will make LPEX recognize the hex value or simply ignore it?
I don’t know if there’s anything in those parser controls that will make LPEX interpret those p-field codes or not, Eddie. Understanding how those parsers work is low on my priority list at present. The best I can tell you is how to maintain those codes, if compatibility with green-screen is important to you.
Within an LPEX session, click on a line to be edited, then right-click to display the pop-up menu. Select Source, and then Hex Edit Line. LPEX responds with a window that shows the hex representation of the line in Unicode, ASCII, and EBCDIC. You can edit the hex codes and press Enter to change the line.