Code::Blocks Forums

User forums => Help => Topic started by: cupido on January 19, 2009, 05:58:50 pm

Title: Syntax highlighting for D
Post by: cupido on January 19, 2009, 05:58:50 pm
hello

I´ve got installed the dmd version 2 and dmc tools for the programming language D.
I configured Code::Blocks such that it was possible to write and run hello world.

But the problem is that there is no syntax highlighting active for D.
How can I activate this for D.

regards cupido
Title: Re: Syntax highlighting for D
Post by: afb on January 20, 2009, 08:27:53 am
As long as the Scintilla lexer for D (lexer_d) is loaded, it should have syntax highlighting...

See also Settings > Editor... > Syntax highlighting, under "Syntax highlighting for: D" ?
Title: Re: Syntax highlighting for D
Post by: cupido on January 20, 2009, 08:21:51 pm
thanks for your answer

this was the place where I look for it first, but there is no entrie for D.

I have the possibility to choose between:
c/c++
squirrel
windows resource
XML

how can I add the "Scintilla lexer for D (lexer_d)" 
and
where can I find it ?

on my system I can´t find such a file.
Title: Re: Syntax highlighting for D
Post by: afb on January 20, 2009, 08:29:25 pm
Maybe it wasn't included in the packaging you used ?

Should be available under http://svn.berlios.de/svnroot/repos/codeblocks/trunk/src/sdk/resources/lexers/
Title: Re: Syntax highlighting for D
Post by: MortenMacFly on January 20, 2009, 08:48:49 pm
c/c++
squirrel
windows resource
XML
See: If you don't post a version of C::B and a platform we can't ant won't help you, really.

I believe that you are on Windows, using the installer for C::B 08.02 and forgot to enable the other lexers in the installation step (they are disabled in the default install).
Title: Re: Syntax highlighting for D
Post by: cupido on January 20, 2009, 09:28:22 pm
sorry for not given the data.

MortenMacFly your right with your assumptions.

is there a simple way to install/active it now?
Title: Re: Syntax highlighting for D
Post by: MortenMacFly on January 20, 2009, 09:37:52 pm
is there a simple way to install/active it now?
What about running the installer again and choosing the right settings?! It should be OK not do do an uninstall before unless you want to remove features, too. Another possibility is to upgrade to a nightly. (Search the forums for more information on that topic.)
Title: Re: Syntax highlighting for D
Post by: cupido on January 20, 2009, 09:49:18 pm
thanks a lot.

your answer was as easy as genius.

after starting the installer
I`ve needed only to click on the checkbox for D under Lexers ->Compiled Languages

and C::B installed itself again with all additional opption

Best regards Cupido