User forums > General (but related to Code::Blocks)

addition of a nother language

(1/2) > >>

AZ:
Hello,
 is it possible to add the support (editor + compile, debug) of another C-like language? I primarily interested in GO ( golang.org)
Thank you
AZ

Alpha:
Yes, see: Adding support for non C/C++ files to the build system.

AZ:

--- Quote from: Alpha on September 01, 2012, 01:54:56 pm ---Yes, see: Adding support for non C/C++ files to the build system.

--- End quote ---

Thank you Alpha,
 how about syntax highlighting and code competition ?

Alpha:
Syntax highlighting, yes: Creating a custom lexer for Code::Blocks editor.  If GO is similar in syntax to C, it would probably be easiest to just copy lexer_cpp.xml, and edit the filemasks and keywords.

Code completion is a little more difficult :).  The current Code Completion plugin will provide suggestions based on the keywords in the current lexer.  If you want more than that, it would require writing your own code completion plugin.

oBFusCATed:

--- Quote from: Alpha on September 15, 2012, 04:14:30 pm ---Code completion is a little more difficult :).  The current Code Completion plugin will provide suggestions based on the keywords in the current lexer.  If you want more than that, it would require writing your own code completion plugin.

--- End quote ---
And it will require changing some API interfaces here and there to minimize code and UI duplication between the different CC plugins.

You can always look at the Fortran plugins. I think they have implemented a CC for Fortran -> http://darmar.vgtu.lt/

Navigation

[0] Message Index

[#] Next page

Go to full version