Author Topic: Synthax highlightening  (Read 5999 times)

Offline LordCB

  • Multiple posting newcomer
  • *
  • Posts: 79
Synthax highlightening
« on: February 23, 2010, 12:35:33 pm »
Hello friends,

I have some problems or misunderstandings with cb´s color management.

How can I give different keyword sets different colors.

When I write
Code
string str;
the color is grey it is the default color.

Is there a way to import synthax color themes

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: Synthax highlightening
« Reply #1 on: February 23, 2010, 12:38:39 pm »
setting ->editor->syntax highlingting
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline LordCB

  • Multiple posting newcomer
  • *
  • Posts: 79
Re: Synthax highlightening
« Reply #2 on: February 23, 2010, 01:39:39 pm »
I know this setting, but what about multiple sets.

In set1 I have this
Code
asm auto bool break case catch char class const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new operator private protected public register reinterpret_cast restrict return short signed sizeof static static_cast struct switch template this throw true try typedef typeid typename union unsigned using virtual void volatile while int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t int_least8_t uint_least8_t int_least16_t uint_least16_t int_least32_t uint_least32_t int_least64_t uint_least64_t int_fast8_t uint_fast8_t int_fast16_t uint_fast16_t int_fast32_t uint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t intmax_t uintmax_t wint_t wchar_t wctrans_t wctype_t size_t time_t and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq complex imaginary _Complex _Imaginary _Bool _Pragma

the color [Keyword] is yellow

In set 2 I have all Qt4 Objects

Code
QAbstractButton QDir QIntValidator QRegExpValidator QTabWidget QAbstractEventDispatcher QDirectPainter .......

the color [user KEyword] is Green

In set 3

Code
a addindex addtogroup anchor arg attention author b brief bug c class code date def defgroup deprecated dontinclude e em endcode endhtmlonly endif endlatexonly endlink endverbatim enum example exception f$ f[ f] file fn hideinitializer htmlinclude htmlonly if image include ingroup internal invariant interface latexonly li line link mainpage name namespace nosubgrouping note overload p page par param post pre ref relates remarks return retval sa section see showinitializer since skip skipline struct subsection test throw todo typedef union until var verbatim verbinclude version warning weakgroup $ @ \ < > # { }


I can´t set the color for the third set

And what about the std classes ( string etc) they are nit highlighted

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Synthax highlightening
« Reply #3 on: February 23, 2010, 02:21:28 pm »

Offline LordCB

  • Multiple posting newcomer
  • *
  • Posts: 79
Re: Synthax highlightening
« Reply #4 on: February 23, 2010, 06:37:23 pm »
I don´t have cb_share_config.exe ?????!!!

Offline LordCB

  • Multiple posting newcomer
  • *
  • Posts: 79
Re: Synthax highlightening
« Reply #5 on: February 23, 2010, 06:38:32 pm »
I use the nightlies

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Synthax highlightening
« Reply #6 on: February 23, 2010, 07:53:38 pm »
I use the nightlies

cb_share_config is a part of the nightlies; it should be in the same directory as the codeblocks executable is.

RIngo

Offline LordCB

  • Multiple posting newcomer
  • *
  • Posts: 79
Re: Synthax highlightening
« Reply #7 on: February 23, 2010, 10:08:17 pm »
Hello rcoll,

Quote
cb_share_config is a part of the nightlies

I don´t find mentioned app in this package


Code
CB_20100116_rev6088_win32.7z

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Synthax highlightening
« Reply #8 on: February 23, 2010, 10:41:24 pm »
Hmmm I don't see it either.  I don't know when it stopped appearing, or why the devs took it out.
At this point, the easiest solution is to download the CB source code and build it.

Ringo