Thats because a .h file is C not C++ so it doesn't have the keyword
bool. If you set the filetype to C++ it will colour bool and any
other C++ stuff too.
geany 1.24.1 (construit le 2015-07-01 avec GTK 2.24.25, GLib 2.43.2)
[bugs:#1098] "bool" isn(t coloured in header (<file>.h) files
Status: open
Found in: v1.24.1
Fixed in: v1.24.1
Created: Fri May 15, 2015 06:52 AM UTC by du Mas des Bourboux
Last Updated: Fri May 15, 2015 06:52 AM UTC
Owner: nobody
In a cpp header file: <file>.h all the type are coloured except "bool". This
can be easily be corrected by adding this key word to the colour scheme.
ok, sorry. It's just that lot of people use ".h" extensions for cpp files.
Maybe we can close this bug and mark it as « not a bug ».
Bye.
[bugs:#1098] "bool" isn(t coloured in header (<file>.h) files
Status: open
Found in: v1.24.1
Fixed in: v1.24.1
Created: Fri May 15, 2015 06:52 AM UTC by du Mas des Bourboux
Last Updated: Fri May 15, 2015 06:57 AM UTC
Owner: nobody
In a cpp header file: <file>.h all the type are coloured except "bool". This
can be easily be corrected by adding this key word to the colour scheme.
If you own the .h files put -*- C++ -*- in a comment on line one or
two, that will override the extension. This also tells emacs its C++
should some traitor use that to edit it :)
If all your .h files are C++ you can switch the association in the
filetype_extensions.conf file, just remove the *.h from C, its already
on C++.
I have looked in vim, gedit and emacs and they all put a color to "bool" in
a <file>.h. What do you thing Geany should do ?
[bugs:#1098] "bool" isn(t coloured in header (<file>.h) files
Status: open
Found in: v1.24.1
Fixed in: v1.24.1
Created: Fri May 15, 2015 06:52 AM UTC by du Mas des Bourboux
Last Updated: Fri May 15, 2015 07:01 AM UTC
Owner: nobody
In a cpp header file: <file>.h all the type are coloured except "bool". This
can be easily be corrected by adding this key word to the colour scheme.
If you own the .h files put -- C++ -- in a comment on line one or
two, that will override the extension. This also tells emacs its C++
should some traitor use that to edit it :)
If all your .h files are C++ you can switch the association in the
filetype_extensions.conf file, just remove the *.h from C, its already
on C++.
On 15 May 2015 at 17:42, du Mas des Bourboux londumas@users.sf.net wrote:
I have looked in vim, gedit and emacs and they all put a color to "bool" in
a <file>.h. What do you thing Geany should do ?
[bugs:#1098] "bool" isn(t coloured in header (<file>.h) files
Status: open
Found in: v1.24.1
Fixed in: v1.24.1
Created: Fri May 15, 2015 06:52 AM UTC by du Mas des Bourboux
Last Updated: Fri May 15, 2015 07:01 AM UTC
Owner: nobody
In a cpp header file: <file>.h all the type are coloured except "bool". This
can be easily be corrected by adding this key word to the colour scheme.
[bugs:#1098] "bool" isn(t coloured in header (<file>.h) files
Status: open
Found in: v1.24.1
Fixed in: v1.24.1
Created: Fri May 15, 2015 06:52 AM UTC by du Mas des Bourboux
Last Updated: Fri May 15, 2015 07:42 AM UTC
Owner: nobody
In a cpp header file: <file>.h all the type are coloured except "bool". This
can be easily be corrected by adding this key word to the colour scheme.
geany 1.24.1 (construit le 2015-07-01 avec GTK 2.24.25, GLib 2.43.2)
Thats because a .h file is C not C++ so it doesn't have the keyword
bool. If you set the filetype to C++ it will colour bool and any
other C++ stuff too.
On 15 May 2015 at 16:54, du Mas des Bourboux londumas@users.sf.net wrote:
Related
Bugs: #1098
bool is not a default C typ, Where as *.h are C header files. If you are using C++, use .hxx as extension.
ok, sorry. It's just that lot of people use ".h" extensions for cpp files.
Maybe we can close this bug and mark it as « not a bug ».
Bye.
Yes, using .h for cpp is a bad habit that I blame on Bjarne since he
does that in his book :(
On 15 May 2015 at 17:01, du Mas des Bourboux londumas@users.sf.net wrote:
Related
Bugs: #1098
I have looked in vim, gedit and emacs and they all put a color to "bool" in a <file>.h. What do you thing Geany should do ?
If you own the .h files put
-*- C++ -*-
in a comment on line one ortwo, that will override the extension. This also tells emacs its C++
should some traitor use that to edit it :)
If all your .h files are C++ you can switch the association in the
filetype_extensions.conf file, just remove the *.h from C, its already
on C++.
On 15 May 2015 at 17:42, du Mas des Bourboux londumas@users.sf.net wrote:
Related
Bugs: #1098
Last edit: Colomban Wendling 2015-05-15
Damn the stupid saucefudge markup, that is dash star dash C++ dash star dash!!!!
On 15 May 2015 at 17:55, Lex Trotman elextr@users.sf.net wrote:
Related
Bugs: #1098