Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Stone on April 02, 2006, 09:49:13 pm

Title: Adding editor support for non-c/cpp files
Post by: Stone 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.
Title: Re: Adding editor support for non-c/cpp files
Post by: thomas 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.
Title: Re: Adding editor support for non-c/cpp files
Post by: Stone on April 02, 2006, 10:03:15 pm
Thank you for your time. I will look into the development build and lexers.
Title: Re: Adding editor support for non-c/cpp files
Post by: Stone on April 02, 2006, 11:29:37 pm
Thanks, it works great.
This will surely ease my D development.