News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to save syntax highlighting ?

Started by Folco, November 14, 2010, 12:28:02 AM

Previous topic - Next topic

Folco

Hi,


I use .h files in an assembly project. Headers files are automatically colourized as C++ header files. I can colourize them as asm files by using Edit->Highlight mode->Assembly 68000 (I binded that to do it more quickly).

But is there a way to have these files of this project colourized permanently ?

If not, could the coloration be added in the .cbp file to remember that ?
Kernel Extremist - PedroM power ©

xunxun

Could you try change the ".h" to ".inc"?
Regards,
xunxun

Folco

Of course, it would work, but I can't rename the files of all guys of the TI-68k communauty beacause I use C::B ^^
Kernel Extremist - PedroM power ©

xunxun

Quote from: Folco on November 14, 2010, 12:28:02 AM
Hi,


I use .h files in an assembly project. Headers files are automatically colourized as C++ header files. I can colourize them as asm files by using Edit->Highlight mode->Assembly 68000 (I binded that to do it more quickly).

But is there a way to have these files of this project colourized permanently ?

If not, could the coloration be added in the .cbp file to remember that ?

Yea, but I don't understand your meaning. Is it that you want to delete the ".h" highlight in the C/C++ highlight, or you want to take ".h" highlight in C/C++ and asm highlight all effective?
Regards,
xunxun

Folco

I would want that CB remember that it must apply asm highlight to the .h files of this project (and keep C/C++ highlight for files outside this project).
Kernel Extremist - PedroM power ©

xunxun

I have no idea to solve it, and Scintilla can autodetect highlight when opening some files. I don't know how to disable its autodetect.
Regards,
xunxun

Folco

Saving an info in the .cbp file could probably do that. But I don't know anything in XML format ^^
Kernel Extremist - PedroM power ©

cdavalillo

It would be nice if Code::Blocks developers team could add some functionality to save syntax highlight to XML files that the user can load later if there is another installation (for example at work) where the user needs to work with.

Miguel Gimenez

A ticket marked as Feature request will be more durable than this post.