Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Loaden on June 02, 2009, 04:24:46 am

Title: CodeSnippets how to set default hilight?
Post by: Loaden on June 02, 2009, 04:24:46 am
Have some option set default hilight to c/c++, but not plain text?
because i am c/c++ programmer, i don't use other language.

please set some option: let's user set own default hilight, thanks!
Title: Re: CodeSnippets how to set default hilight?
Post by: ollydbg on June 02, 2009, 05:36:40 am
Apart from that, some standard C++ headers files, they don't have any file extention like *.h.

So, if a default highlight can be set, these kind of header file can be shown quiet good.
Title: Re: CodeSnippets how to set default hilight?
Post by: Loaden on June 02, 2009, 07:55:12 am
I found: if not a file link, it's can't hilight item:


[attachment deleted by admin]
Title: Re: CodeSnippets how to set default hilight?
Post by: JGM on June 02, 2009, 08:27:04 am
Edit -> Highlight Mode
Title: Re: CodeSnippets how to set default hilight?
Post by: ollydbg on June 02, 2009, 08:42:35 am
Edit -> Highlight Mode

Thanks, I try to set the text highlight for iostream, but Edit->syntax highlight, I can't find there is an option for these kind of files. (With no extension) .

See screenshot


[attachment deleted by admin]
Title: Re: CodeSnippets how to set default hilight?
Post by: JGM on June 02, 2009, 08:52:36 am
I mean the Edit menu there in Highlight Mode you can select the syntax you want look how well it works.

On attached screenshot

[attachment deleted by admin]
Title: Re: CodeSnippets how to set default hilight?
Post by: ollydbg on June 02, 2009, 09:04:24 am
oh, Yes, Thanks.
I have made a mistake :(, I treat "Edit->hightlight" as "Settings->Editor->syntax hightlight" :D.
Title: Re: CodeSnippets how to set default hilight?
Post by: JGM on June 02, 2009, 09:09:44 am
oh, Yes, Thanks.
I have made a mistake :(, I treat "Edit->hightlight" as "Settings->Editor->syntax hightlight" :D.

Yeah i thought that  :D, that kind of things happen  :lol:
Title: Re: CodeSnippets how to set default hilight?
Post by: Loaden on June 02, 2009, 09:11:32 am
I mean the Edit menu there in Highlight Mode you can select the syntax you want look how well it works.

On attached screenshot

Thanks!
But, I am talking about CodeSnippets , not the CB.