User forums > Using Code::Blocks
Quick new C++ file (small question)
Zini:
I think this sequence
--- Quote ---File->New->File->C/C++ source->C++->Filename
--- End quote ---
could easily be reduced by one step by integrating the C++ part into the C/C++ source part.
We are already choosing what type of file we want at that stage. Why have another stage to choose the language?
The file type list would then look like this:
C header, C++ header, C source, C++ source, Empty file
Jenna:
--- Quote from: cyanide911 on November 17, 2009, 10:14:12 am ---Yeah, but the problem with writing the code in an empty file (without .cpp extension) is syntax highlighting. CodeBlocks will hilight the syntax only if it know that I'm making a C++ file.
@Jens: CtrlShiftN opens an empty file without any popup for the file name.
--- End quote ---
The popup only occurs, if a project is open, if not, ctrl+s tries to save the file and asks for a name, if you now save with cpp-ending, you have c++ syntax-highlighting.
dmoore:
--- Quote from: jens on November 17, 2009, 11:05:54 am ---
--- Quote from: cyanide911 on November 17, 2009, 10:14:12 am ---Yeah, but the problem with writing the code in an empty file (without .cpp extension) is syntax highlighting. CodeBlocks will hilight the syntax only if it know that I'm making a C++ file.
@Jens: CtrlShiftN opens an empty file without any popup for the file name.
--- End quote ---
The popup only occurs, if a project is open, if not, ctrl+s tries to save the file and asks for a name, if you now save with cpp-ending, you have c++ syntax-highlighting.
--- End quote ---
also don't forget edit->highlight mode->[your language]
Navigation
[0] Message Index
[*] Previous page
Go to full version