2011/8/15 bijan binaee <<a href="mailto:bijanbina@gmail.com">bijanbina@gmail.com</a>>:<br>
> Hi !<br>
> i'm an new member of KDeveleop community.<br>
><br>
> i have some idea and want to implementing theme on kdevelop instead just a<br>
> feature request!<br>
><br>
> ok i want to work on detect data type in c,c++ language for highlight theme.<br>
><br>
> for example in this code :<br>
><br>
> //////////////////////////////<div id=":7h">///////////////////////////////<br>
> #include <iostream><br>
><br>
> int main(int argc, char** argv)<br>
> {<br>
><br>
> ?? myClass Test;<br>
><br>
> std::cout << "hello world";<br>
> ?? return 0;<br>
> }<br>
><br>
> /////////////////////////////////////////////////////////////<br>
><br>
> i want to detect myclass. also struct name are data type!<br>
> so any one can help me where in kdevelop source this feature have to add.<br>
><br>
> also i want to chat with one of you to get some info on irc kdevelop channel<br>
> can anyone help!<br>
><br>
> Thanks a lot<br><br>>>Hi,<br>
>><br>
>>so, you want to highlight variables based on their type? I don't think<br>
>>you can encode *even more* information in the variable colours than<br>>>
there is right now. It's quite colourful already, isn't it...<br>
>><br>
>>Bye,<br>
>>Sven<br><br>Hi Sven<br>i think you don't understand, my aim is to highlight type not to highlight variable name <br>in this code:<br>void stackdump_g(lua_State* l)<br>{<br> int i;<br> int top = lua_gettop(l);<br>
<br> printf("total in stack %d\n",top);<br><br> for (i = 1; i <= top; i++)<br> { /* repeat for each level */<br> int t = lua_type(l, i);<br> switch (t) {<br> case LUA_TSTRING: /* strings */<br>
printf("string: '%s'\n", lua_tostring(l, i));<br> break;<br> case LUA_TBOOLEAN: /* booleans */<br> printf("boolean %s\n",lua_toboolean(l, i) ? "true" : "false");<br>
break;<br> case LUA_TNUMBER: /* numbers */<br> printf("number: %g\n", lua_tonumber(l, i));<br> break;<br> default: /* other values */<br> printf("%s\n", lua_typename(l, t));<br>
break;<br> }<br> printf(" "); /* put a separator */<br> }<br> printf("\n"); /* end the listing */<br>}<br><br>i want to highlight lua_State in first line ,int in third line,etc <br>
<br>thanks.<br><br></div>