Author Topic: Syntax highlighting for D  (Read 6096 times)

Offline cupido

  • Single posting newcomer
  • *
  • Posts: 4
Syntax highlighting for D
« 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
« Last Edit: January 20, 2009, 11:51:26 am by cupido »

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Syntax highlighting for D
« Reply #1 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" ?

Offline cupido

  • Single posting newcomer
  • *
  • Posts: 4
Re: Syntax highlighting for D
« Reply #2 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.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Syntax highlighting for D
« Reply #3 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/

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Syntax highlighting for D
« Reply #4 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline cupido

  • Single posting newcomer
  • *
  • Posts: 4
Re: Syntax highlighting for D
« Reply #5 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Syntax highlighting for D
« Reply #6 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.)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline cupido

  • Single posting newcomer
  • *
  • Posts: 4
Re: Syntax highlighting for D
« Reply #7 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