Author Topic: Issues With Color Syntax in Code Blocks  (Read 9365 times)

Offline Dominus22

  • Single posting newcomer
  • *
  • Posts: 4
Issues With Color Syntax in Code Blocks
« 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Issues With Color Syntax in Code Blocks
« Reply #1 on: September 14, 2014, 11:29:39 pm »
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

Offline Dominus22

  • Single posting newcomer
  • *
  • Posts: 4
Re: Issues With Color Syntax in Code Blocks
« Reply #2 on: September 19, 2014, 01:55:57 am »
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Issues With Color Syntax in Code Blocks
« Reply #3 on: September 19, 2014, 06:12:34 am »
What file-ending ?
If none it's treated as plain text and has no highlighting at all.

Offline Dominus22

  • Single posting newcomer
  • *
  • Posts: 4
Re: Issues With Color Syntax in Code Blocks
« Reply #4 on: September 20, 2014, 03:41:43 pm »
The file ending is saved as the default whenever you write c it saves as .cbp

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Issues With Color Syntax in Code Blocks
« Reply #5 on: September 20, 2014, 06:16:39 pm »
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...

Offline Dominus22

  • Single posting newcomer
  • *
  • Posts: 4
Re: Issues With Color Syntax in Code Blocks
« Reply #6 on: September 20, 2014, 08:02:28 pm »
.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

  • Guest
Re: Issues With Color Syntax in Code Blocks
« Reply #7 on: August 11, 2018, 01:49:45 pm »
.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.