News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Syntax highlighting for D

Started by cupido, January 19, 2009, 05:58:50 PM

Previous topic - Next topic

cupido

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

afb

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" ?

cupido

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.

afb


MortenMacFly

Quote from: cupido on January 20, 2009, 08:21:51 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

cupido

sorry for not given the data.

MortenMacFly your right with your assumptions.

is there a simple way to install/active it now?

MortenMacFly

Quote from: cupido on January 20, 2009, 09:28:22 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.)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

cupido

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