× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Does anyone know how to change the color of source lines in SEU?
  • From: "Phil Hayes" <PHayes1@xxxxxxxxxxx>
  • Date: Sun, 6 Aug 2000 21:04:59 -0700
  • Importance: Normal

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
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.