Capitalisation of keywords

Working on new editor enhancements?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Capitalisation of keywords

Post by PB »

> I might have a go at the custom keywords,
> but it looks like quite an undertaking

LOL, we've done all the work for you! :)

All you need to do is copy all those capitalised words above,
from my post and the other, into a single plain text file (such
as created by Notepad).

Then, save that file somewhere, and then open PureBasic,
open the Preferences, open the "Editor" section, open the
"Coloring" item, click the "Custom keywords" bit, then
browse to the saved text file and apply the setting.

It's easy! See below.

Image
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Capitalisation of keywords

Post by blueb »

RNBW wrote:I certainly find coding much clearer with bold capitalised keywords....
Hi RNBW... I notice you're new here. Welcome to PureBasic :)

PureBasic has upwards of 2100 functions (procedures) and makes good use of CamelCase.

Examples such as:

CREATEPOPUPIMAGEMENU
ADDENTITYANIMATIONTIME
ADDVERTEXPOSEREFERENCE
BUTTONIMAGEGADGETNOSKIN
CONVERTLOCALTOWORLDPOSITION
CONVERTWORLDTOLOCALPOSITION

will make you think twice about using upper case only!

You may wish to settle in with PureBasic for a few weeks
before changing over to caps only. :mrgreen:
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Capitalisation of keywords

Post by Shield »

Exactly. I can understand someone wants to write all-caps keywords (nostalgia, preference, whatever).
But the functions are clearly too much to be good for one's health. :mrgreen:
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
RNBW
User
User
Posts: 65
Joined: Thu Jan 02, 2014 5:01 pm

Re: Capitalisation of keywords

Post by RNBW »

PB wrote:> I might have a go at the custom keywords,
> but it looks like quite an undertaking

LOL, we've done all the work for you! :)

All you need to do is copy all those capitalised words above,
from my post and the other, into a single plain text file (such
as created by Notepad).

Then, save that file somewhere, and then open PureBasic,
open the Preferences, open the "Editor" section, open the
"Coloring" item, click the "Custom keywords" bit, then
browse to the saved text file and apply the setting.

It's easy! See below.


Image
That is not only easy it is superb and I now have colour coded capitalised keywords and functions. Couldn't ask for more. Thank you everybody for your help.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Capitalisation of keywords

Post by PB »

No other BASIC has this level of customisation... or friendly community! :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply