Author Topic: Adding editor support for non-c/cpp files  (Read 4187 times)

Stone

  • Guest
Adding editor support for non-c/cpp files
« on: April 02, 2006, 09:49:13 pm »
Hello, Code::Blocks community.

I recently set up the Digital Mars D Compiler to work with Code::Blocks, and I was wondering if there's a way to make Code::Blocks recognize *.d files as source code and view it in an appropriate editor format. (colours, comments, etc)

I am running the latest stable version for Win32.

Thank you.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Adding editor support for non-c/cpp files
« Reply #1 on: April 02, 2006, 09:59:05 pm »
Quote
I am running the latest stable version for Win32.
In that case, you have to either copy a lexer from svn or write your own, also you have to associate the .D extension for Windows Explorer yourself.

If you use a development build, you can just go to options and have Code::Blocks assign everything for you. A lexer is included as well.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Stone

  • Guest
Re: Adding editor support for non-c/cpp files
« Reply #2 on: April 02, 2006, 10:03:15 pm »
Thank you for your time. I will look into the development build and lexers.

Stone

  • Guest
Re: Adding editor support for non-c/cpp files
« Reply #3 on: April 02, 2006, 11:29:37 pm »
Thanks, it works great.
This will surely ease my D development.