User forums > Using Code::Blocks
Synthax highlightening
LordCB:
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;
--- End code ---
the color is grey it is the default color.
Is there a way to import synthax color themes
blueshake:
setting ->editor->syntax highlingting
LordCB:
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
--- End code ---
the color [Keyword] is yellow
In set 2 I have all Qt4 Objects
--- Code: ---QAbstractButton QDir QIntValidator QRegExpValidator QTabWidget QAbstractEventDispatcher QDirectPainter .......
--- End code ---
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 $ @ \ < > # { }
--- End code ---
I can´t set the color for the third set
And what about the std classes ( string etc) they are nit highlighted
rcoll:
Yes, take a look at this message:
http://forums.codeblocks.org/index.php/topic,10636.msg81404.html#msg81404
Ringo
LordCB:
I don´t have cb_share_config.exe ?????!!!
Navigation
[0] Message Index
[#] Next page
Go to full version