Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
NiNTENDU is currently offline  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

 
Read Message
Read Message
Read Message
Previous Topic: Navigator Bar Search results
Next Topic: Auto-completion for external headers
Goto Forum:
  


Current Time: Thu Apr 25 00:11:54 CEST 2024

Total time taken to generate the page: 0.02078 seconds