Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Dominus22 on September 13, 2014, 09:28:41 pm
-
I have recently installed Codeblocks on Linux Mint 17 Qiana and the only problem I have been having is that when i type the code in the editor it does change color according to what you write(like comments are supposed to be green and so on) and im wondering what settings need to b changed for me to rectify this issue plz anyone who can offer some assistance plz help me.
-
if i understand you correctly you don't want the coloring of the code?
As far as i know this can't be turned off in one step. You have to go to Settings->Editor->Syntax Highlighting and turn all colors to black
greetings
-
No it is that the color isnt present everything is just black i want the color to be there but for some reason it gives me no colour and the syntax highlighting option is set to default
-
What file-ending ?
If none it's treated as plain text and has no highlighting at all.
-
The file ending is saved as the default whenever you write c it saves as .cbp
-
The file ending is saved as the default whenever you write c it saves as .cbp
???
.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...
-
.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?
-
.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.