jack: (Default)
[personal profile] jack
How much syntax highlighting do you generally get when you edit code? Any?

Does it call out different variable types?

Can you easily configure it dynamically to eg. highlight different ifdef branches or variables with certain prefixes?

Should it be able to?

Date: 2007-04-25 12:28 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
I'm not sure highlighting the types of variables is likely to be that helpful; what you need to know about a variable (or any expression) is what it means not merely what type it is. Still, I'd be willing to try it, though I think it'd be rather a lot of work to add the feature to Emacs (my answer to your first question being pretty much the font-lock-mode defaults).

Date: 2007-04-25 12:50 pm (UTC)
From: [identity profile] hoiho.livejournal.com
Given that emacs font-lock works on regexps, I'd say that it'd be tantamount to impossible to add it (you'd have to dynamicaly update the regpexs with the names/type/style tuples...). Even etags (which has a more or less complete C parser) has trouble with this sort of thing - hence the flags for typedefs.

Date: 2007-04-25 01:05 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Indeed - by 'rather a lot of work' I imagine a fresh start.