Change colour of source code

Just a quick one,
  I have taken responsibility for some RPG Source code and it has different colours on some of the lines, how do I do this, I have looked at manuals and I cannot see anything on how do this.

Cheers
LVL 3
jetforceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

caraf_gCommented:
It's easy enough but it requires a bit of trickery. Be careful though, what on your monitor looks like a nice shade of some colour or other, may be blinking on a monochrome monitor...

Anyway,

What you'll need to do is to read the source in with your own RPG program.

It's been a while, let me think.... in RPG, you'll have your HFELICO letters in position 6, right?

Anyway, effectively, that makes positions 1 to 5 comment lines. Putting anything there will not affect your code.

And here's the trick.... In position 5, put a control character. These range from hex(20) to hex(39) inclusive, and they define display attributes.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
caraf_gCommented:
"What you'll need to do is to read the source in with your own RPG program"

Sorry, vague... You'll need to write an rpg program that includes one of your source files (e.g. QRPGSRC) as an Update, Full procedural file.

Before you run your rpg program, you must override the file and the member to the one you want to modify.
0
jetforceAuthor Commented:
I did a DSPPFM on some source code and I could see the control character.

Thanks

Jetfoce
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM System i

From novice to tech pro — start learning today.