chips
New Member
Posts: 4
|
Post by chips on Oct 15, 2022 21:25:30 GMT -5
I am running SPFLite2 (v2.6.22194) under Wine (v1.3.11) on a Ubuntu Mate (20.04.5 LTS) machine. I am coding Rexx programs (to be run by Regina-rexx v3.6-2.1) that have a suffix of '.rexx'. I have copied the sample color file from www.spflite.com/Files/SPFLiteColorizeFiles.zip to my C:\users\chips\My Documents\SPFLite\AUTO\rexx.auto file. My SPFLite 'profile' states: PROFILE REXX USING(DEFAULT) UNLOCKED, ... HILITE FIND AUTO, ... However, I am not getting any colorization in my programs other than what the 'Options' command shows under the 'Schemes' tab for 'Text Lo Intensity'. I have tried renaming the color 'rexx.auto' file to 'REXX.auto' and to 'default.auto' but still can't get any colorization. I have spent the entire day searching for colorization problems but have not found anything nor have I found any indication of what I might be doing wrong. Any suggestions or other places to search (or terms to search for) would be greatly appreciated.
|
|
chips
New Member
Posts: 4
|
Post by chips on Oct 16, 2022 12:58:12 GMT -5
Robert,
Thank you for the reply. I did the "Go to File Manager, then click on Configs, then click on the Rexx profile name. You will get a screen to update your Rexx settings. Remove the USING DEFAULT" with no problems.
But now I'm stuck with the "Now go back and add your colorization settings". When I use the "Options" command, the display title is "SPFLite Global Options (DEFAULT)". When I check the File Manager Configs tab, it shows a "Profile: REXX" (which does not allow me to colorize the schemes). It also shows a "Instance: DEFAULT" (which does allow for color changes but for 'default') BUT THERE IS NOT "Instance: REXX". I have search on how I am supposed to create the REXX Instance but to no avail. I'm sure this is a newbie problem but I'm just not seeing it.
Chips
|
|
|
Post by mueh on Oct 16, 2022 13:58:26 GMT -5
Hi chips ! First issue OPT GENERAL remove REXX in field "Enter the File Types to use the DEFAULT Profile" at bottom of window . This should now use the Profile REXX .
|
|
chips
New Member
Posts: 4
|
Post by chips on Oct 16, 2022 16:29:09 GMT -5
Mueh,
I issued the OPT GENERAL command and the "Enter the File Types to use the DEFAULT Profile" was already empty but still no colorization so now I will work on Robert's solution. Thanks
Chips
|
|
chips
New Member
Posts: 4
|
Post by chips on Oct 16, 2022 20:46:13 GMT -5
Well, I checked out Robert's suggestions and I already had everything set the way he suggested.
I then decided to do a bunch of print screens showing the sequence of what I am doing and the results.
Please see the attached doc (hopefully you can view it) and tell me what I am doing wrong.
I really don't want to have to set up a Windows machine just to run SPFLite cause I really miss having the colorization.
Thank you for your help and patience.
Chips
|
|
|
Post by Stefan on Oct 17, 2022 8:33:13 GMT -5
Looks to me that the issue is that SPFLite ships with a OPTIONS SCHEME which doesn't give you any colours!
As distributed, just about every setting is black text on white background. It's like the early days of colour TV - if you run the TV set with the colour knob turned down, you don't see them.
So even if you have all your environment, profile relationships and settings correct, and a REXX.AUTO colorisation file which maps language keywords to different colour numbers, you'll see no colourisation because the palette is all black on white.
To make colourisation work for .REXX files, you need: (1) the filename to end in .REXX (2) SPFLIte must have a profile called REXX and be using it to EDIT the file - ie do not tell SPFLite to use a different profile (e.g DEFAULT) for REXX files (3) The REXX profile must specify HILITE AUTO or HILITE FIND AUTO
(4) Have a file called REXX.AUTO in to .....SPFLITE\AUTO folder (5) Have entries in that AUTO file which associates each language keywords with a particular colour/scheme number, e.g. WORD 5 IF (to have the keyword IF appear in colour 5) (6) Via OPTIONS SCHEME, set a different foreground colour for each Scheme number (or at least the ones you want to use).
I asked a long while ago that SPFLite should ship with some default colours in the scheme so that at least there's a visible difference 'out of the box'. Users can then change the colours to their liking. I think the comment was probably overlooked.
You need to assign a foreground colour to each Scheme number via the OPTIONS SCHEME dialog. Or have a look at "Forum - Contributed file - Green screen Sample Configuration" - it's based on a black background but will get you started.
|
|
|
Post by George on Oct 17, 2022 8:50:45 GMT -5
Stefan: You're probably right that a better default scheme should be shipped. Yes, the scheme may or may not 'look nice' with the users other color choices, but at least it won't just be monochrome. I'll try and get this in place, just have to choose the new defaults.
George
|
|