User forums > Using Code::Blocks
Issues With Color Syntax in Code Blocks
BlueHazzard:
--- Quote from: Dominus22 on September 20, 2014, 03:41:43 pm ---The file ending is saved as the default whenever you write c it saves as .cbp
--- End quote ---
???
.cbp is the codeblocks project file, there are your build and project options saved.
The. C file is your source file. If you simply open a new file with the toolbar shortcut you have to save it first as a. C file. Without saving it you won't get any colors...
Dominus22:
.C forgive me im very new to code blocks but now im in a file that the ending is is cpp instead of cbp and it has the colors but if u can what is the difference between the cbp and cpp endings?
softwarejedimaster:
.cbp are the project settings file. The .cpp is the C++ source file. Once you have saved your source file with the correct extension, you will then see the correct syntax highlighting colors.
Navigation
[0] Message Index
[*] Previous page
Go to full version