Page 2 of 2

Re: Capitalisation of keywords

Posted: Fri Jan 03, 2014 2:32 pm
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

Re: Capitalisation of keywords

Posted: Fri Jan 03, 2014 2:37 pm
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:

Re: Capitalisation of keywords

Posted: Fri Jan 03, 2014 3:45 pm
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:

Re: Capitalisation of keywords

Posted: Fri Jan 03, 2014 4:07 pm
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.

Re: Capitalisation of keywords

Posted: Fri Jan 03, 2014 4:08 pm
by PB
No other BASIC has this level of customisation... or friendly community! :)