It is currently Tue Mar 09, 2021 7:32 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Capitalisation of keywords
PostPosted: Fri Jan 03, 2014 2:32 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 7581
> 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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Capitalisation of keywords
PostPosted: Fri Jan 03, 2014 2:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 904
Location: Cuernavaca, Mexico
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.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram


Top
 Profile  
Reply with quote  
 Post subject: Re: Capitalisation of keywords
PostPosted: Fri Jan 03, 2014 3:45 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 1021
Location: 'stralia!
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Capitalisation of keywords
PostPosted: Fri Jan 03, 2014 4:07 pm 
Offline
User
User

Joined: Thu Jan 02, 2014 5:01 pm
Posts: 61
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Capitalisation of keywords
PostPosted: Fri Jan 03, 2014 4:08 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 7581
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye