Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » A few suggestions about CodeEditor
A few suggestions about CodeEditor [message #21819] |
Sun, 07 June 2009 00:47  |
NiNTENDU
Messages: 1 Registered: June 2009
|
Junior Member |
|
|
Hello everybody!
Playing with TheIDE source two ideas are bouncings in my mind:
* I REALLY like the idea to colorize the paper to identify code blocks like loop etc... but maybe drop off the macro line coloring because is hardly recognizable and add cluttering; but this is a very minor issue.
* I noticed that highlight code use various static arrays lookup
to search if a keyword is standard cpp or upp or whatever.
I think is not a bad idea to use a single big hash table of the type:
[KEYWORD] => [COLOR]
for example:
int => CPP_COLOR_INK
wchar => UPP_COLOR_INK
...
default => DEFAULT_INK
That will bring a (minor/mayor?) performance relief and simplify the code a bit: simply throw the word and you get the color!
[edit: lookup would result in a perfect hash function!]
What do you think? Maybe too much work for nothing?
NiNTENDU
ps: sorry for my bad english, it's not my primary language!
[Updated on: Sun, 07 June 2009 01:03] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:01:50 CEST 2025
Total time taken to generate the page: 0.01062 seconds
|