Menu

#1098 "bool" isn(t coloured in header (<file>.h) files

v1.24.1
open
nobody
None
v1.24.1
5
2015-05-15
2015-05-15
No

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.

In Ubuntu 15.04
geany 24.1

Thank for the app

Related

Bugs: #1098

Discussion

  • du Mas des Bourboux

    geany 1.24.1 (construit le 2015-07-01 avec GTK 2.24.25, GLib 2.43.2)

     
    • Lex Trotman

      Lex Trotman - 2015-05-15

      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:

      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.

      In Ubuntu 15.04
      geany 24.1

      Thank for the app


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/geany/bugs/1098/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1098

  • frlan

    frlan - 2015-05-15

    bool is not a default C typ, Where as *.h are C header files. If you are using C++, use .hxx as extension.

     
  • du Mas des Bourboux

    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.

     
    • Lex Trotman

      Lex Trotman - 2015-05-15

      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:

      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.

      In Ubuntu 15.04
      geany 24.1

      Thank for the app


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/geany/bugs/1098/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1098

  • du Mas des Bourboux

    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 ?

     
    • Lex Trotman

      Lex Trotman - 2015-05-15

      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.

      In Ubuntu 15.04
      geany 24.1

      Thank for the app


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/geany/bugs/1098/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1098


      Last edit: Colomban Wendling 2015-05-15
      • Lex Trotman

        Lex Trotman - 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:

        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.

        In Ubuntu 15.04
        geany 24.1

        Thank for the app


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/geany/bugs/1098/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        [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.

        In Ubuntu 15.04
        geany 24.1

        Thank for the app


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/geany/bugs/1098/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1098


Log in to post a comment.