add IMPORTANT to highlighted comment words

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

add IMPORTANT to highlighted comment words

Post by Keya »

some words in comments are already highlighted, like "TODO" (case sensitive), which i find a super handy and underrated feature!!!

i'm requesting that you please add "IMPORTANT", "NOTE", and "WARNING" - thankyou! I know i can add this to my custom config but i feel this would be better as a default, and quick and easy enough to add
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: add IMPORTANT to highlighted comment words

Post by IdeasVacuum »

+1
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: add IMPORTANT to highlighted comment words

Post by freak »

What exactly is the problem with configuring your own settings?

The preinstalled settings are only there as an example and so people can discover the feature.
quidquid Latine dictum sit altum videtur
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: add IMPORTANT to highlighted comment words

Post by Keya »

i just use default settings so every time i install a new build i lose them, i know there's extra steps that can be taken to save them for reuse but i haven't gotten around to that yet as i've just been using defaults. My request is just a logical extension to what already exists though ... ie. if "TODO" is already in the default highlight list i would've thought it'd be even more important to have "IMPORTANT" in that list :) anyway thankyou for your time and consideration
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: add IMPORTANT to highlighted comment words

Post by skywalk »

I see no reason for additional default keywords. Just make what you need and copy out the necessary preference files to your new installation folder. Then run 'purebasic.exe /portable'.

I would prefer PureBasic specified a user-independent preferences folder other than the installation folder. Not everyone has write access to edit/replace files there.

Code: Select all

"C:\PureBasic-x86\Visual Designer.prefs"
"C:\PureBasic-x86\PureBasic.prefs"
"C:\PureBasic-x86\Templates.prefs"
"C:\PureBasic-x86\Tools.prefs"
"C:\PureBasic-x86\UpdateCheck.xml"
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: add IMPORTANT to highlighted comment words

Post by blueb »

I've had problems in the past (Lost all my template information, etc.), so now I do this before backing up my PureBasic folder.
It goes to the installation folder location and copies everything to a sub-folder in the PureBasic folder.

Code: Select all

If CopyDirectory("C:\Users\Bob H\AppData\Roaming\PureBasic", "C:\Latest Home\PureBasic\Bobs Template Backup Folder", "", #PB_FileSystem_Recursive|#PB_FileSystem_Force)

     Debug "Success! You now have a copy of your template files!"

Else
     Debug "+++++++++++++++++++++++++++"
     Debug "+++++++++++++++++++++++++++"
     Debug " Something went wrong! Please try again!"
     Debug "+++++++++++++++++++++++++++"
     Debug "+++++++++++++++++++++++++++"
EndIf
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply