On Thu, 9 Sept 2021 at 23:57, Ray Andrews rayandrews@eastlink.ca wrote:
On 2021-09-09 4:28 a.m., Chris wrote:
Is there a way to change the PHP $ variable symbol to a different colour. My eyesight isn't the best and also I'm dyslexic, so I tend to struggle a bit with the likes of $STOP, $TOP, $$STEP Etc. I prefer to use a lot of capitalized variable names as they are clearer to read. I have set up my personal Geany colour scheme, but I just can't find where to change the $ colour. Any help will be great :)
The lexing of code into syntactic elements (the things you gave a style to in the colour scheme) is done by the Scintilla lexers. The PHP lexer makes the $ and the STOP the same element type, so you can't distinguish the $ from the STOP in a Geany colour scheme. I guess the PHP lexer writer considered the $ part of the variable, fairly reasonable considering the W3Schools (as an example) say "In PHP, a variable starts with the $ sign"
You could try asking on the Scintilla project, or if you know C++ you could patch the PHP lexer for yourself.
Many thanks,
Chris.
I created my own font with things like a much bigger $ sign, 1lI! clearly distinguishable, and a few other changes like a bigger comma.
Did you make your font available anywhere to help others?
Cheers Lex
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users