aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 8, 2018 17:37:34 GMT -5
Hi I'm trying to create an AUTO file for python (.py) I have read manual which has some info in it and an example which then seems to have other syntax and definitions not in the manual. So, looking at the manual and example I have started with this: QUOTED 5 COMMENT1 1 # 0 DELIMS (),:"' WORD 4 while WORD 4 if WORD 4 elif WORD 4 import WORD 4 from WORD 4 print WORD 4 def WORD 4 =
If I remove the 0 from comments SPFLite cancels Hilite with error. the above file has no error but nothing happens. What have I missed and/or what am I doing wrong ..
PS: I have also looked on the site for the downloadable AUTO files but can't find them .... again what am I doing wrong?
Ta for any help.
|
|
aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 10, 2018 18:54:43 GMT -5
Thanks Robert. I will re-code my comment as you have suggested. You are also right about changing a colour to the same colour ...... When I looked at my distribution, it has 16 "Schemes", but all except 16 (Normal Text Hi intensity) are the same - Blue, white, Light blue for FG BG1 & BG2. So I'm thinking that in the distribution it would be simple just to give them all different colours? for dummies like me .... :-)
As it is I'll use the other python IDEs and record their colour usage and modify my schemes to attempt to replicate their usage. I did find some AUTO files on the SPFLite site but they were very complicated and did not really help. If I get my AUTO file to look reasonable I'll upload for others to use.
Thanks again for the help. AreTwo
|
|
aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 11, 2018 18:40:36 GMT -5
Yep Robert - I'm sure your right. Don't remember and thought I just did an inplace update of my old version with little input from me. The good news is that I've been taught heaps by you and now have my py.AUTO in reasonable condition. Its early days yet as Python is SO complex once library functions and imports are used. "They" have different colours for basic instructions and ones from libraries, so compiling a list is tiresome so say the least. I'll get about 50 then call it a done job. :-) Thanks Robert, you have been a great help.
|
|
|
Post by George on Nov 14, 2018 10:55:33 GMT -5
Sorry I didn't see this post sooner or I would have jumped in. Thanks Robert for helping out. The Doc for COMMENTx has been corrected (not that it helps here) I'll see about at least updating the online version.
George
|
|
aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 14, 2018 18:04:07 GMT -5
Better late than never George. :-) Thanks for this attention, I've got this "auto" thing pretty much under control now. One last thing - is it possible for me to get the default schemes now? As Robert has said I've replied wrongly to a question which resulted in all my schemes the same. I've now found and downloaded all the "auto" file file from the site and would like to have the schemes they use. How do I get them as an aftermarket download please. Thanks Richard Robinson
|
|
aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 14, 2018 20:24:26 GMT -5
Thanks for the support Robert. For me - I've now got all the aotu files installed. Its the schemes as a block that I wish to import. Some of the auto files use scheme numbers up to 8 or 9. I can't find out whet those are MEANT to be as all mine were set to same as first. Could I install on another computer and copy some files ? to my main computer? IE where are the schemes kept?
|
|
|
Post by George on Nov 15, 2018 10:56:55 GMT -5
Actually, the main change in V10 was to separate the setting of actual colors away from the AUTO files. The problem with embedded colors and sharing AUTO files was that donated AUTO files were customized for the creators basic color scheme. That's a problem since people run that all different ways.
Old green screen (black BG, white letters), (black BG, green letters), (white BG, Blue letters) , (Blue BG, white letters), etc. etc. and the color schemes in the AUTO only work properly with the original creators choices. Throw in BG banding or not and how intense the banding might be and you can see why there are NO default schemes.
What I would do is decide on your basic SCHEME groupings and assign YOUR default Scheme number: 1 Comments 2 Punctuation 3 Compiler Directives 4 Compiler functions 5 API functions 6 Data declaration keywords 7 Other compiler keywords etc.
Then, if you also use an IDE that colorizes, use that as a guide and set your Options => Schemes to match those values.
Then you would have to do a bunch of CHANGE ALL commands to your AUTO files to swap the existing Scheme numbers around to match.
There's no magic bullet I'm afraid as all this is very personalized.
Robert: No, for a one time thing, I can't see supporting a 'go back' to pick up the colors from an old AUTO file.
George
|
|
aretwo
Freshman Member
Posts: 6
|
Post by aretwo on Nov 18, 2018 17:30:44 GMT -5
Thanks George
|
|