nccgroup / ncccodenavi

NCC Code Navigator
GNU Affero General Public License v3.0
54 stars 10 forks source link

Syntax highlighting not consistently applied #31

Closed lllama closed 11 years ago

lllama commented 11 years ago

The highlighting in code views is not always applied when opening a window. There doesn't appear to be an obvious difference between which files get highlighted and which don't.

olliencc commented 11 years ago

can you supply two examples of the same extension where one does and one does not please offline?

olliencc commented 11 years ago

Actually are you using the release version i.e. the one with the correct directory structure i.e. do you have a directory called .\NCCCodeNavi.CodeHighlighting relative to the binary?

lllama commented 11 years ago

Pretty sure I am using release version or running HEAD with correct directories. Assume I am because some highlighting is applied.

I'll dig out some example files

lllama commented 11 years ago

False positive - highlighting is applied consistently when NCCCodeNavi.CodeHighlighting is present. When the folder isn't present ".h" files seem to have highlighting, ".c" files don't.

olliencc commented 11 years ago

there is some fall back code which defaults to the internal lexer / highlighter but it's not extension aware (god knows why) hence the crapness. Maybe it should be removed and the user warned about the missing directory?