User forums > Using Code::Blocks

Syntax Highlight for MY file extensions/languages

<< < (2/3) > >>

stahta01:
Is the already existing LexForth.cxx the right file?

http://svn.berlios.de/viewvc/codeblocks/trunk/src/sdk/wxscintilla/src/scintilla/src/LexForth.cxx?view=log

Oops, your are looking for an file with a format like this lexer_*.xml

Tim S.

MortenMacFly:

--- Quote from: stahta01 on January 27, 2010, 09:00:55 am ---Is the already existing LexForth.cxx the right file?

--- End quote ---
Yes, but you'll need to implement the C::B's XML configuration file as described here:
http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor
BTW: My first contributions to C::B were some lexers, because it was easy after all... hence I had to digg through this, too.

Jenna:

--- Quote from: stahta01 on January 27, 2010, 09:00:55 am ---Is the already existing LexForth.cxx the right file?

http://svn.berlios.de/viewvc/codeblocks/trunk/src/sdk/wxscintilla/src/scintilla/src/LexForth.cxx?view=log

Tim S.

--- End quote ---

Yes.

I started working on a forth xml-file, should not be so hard.
To create a whole new lexer is not that easy, because it might need recompilation of scintilla (a source-file is needed in most cases).

It would be nice, if you can provide a sample source-file in forth for the syntax-highlighting.
You can have a look at the other samples to see how it's done there.


--- Quote from: mark4 on January 27, 2010, 08:08:33 am ---The one that only has a few language files loaded is in XP and its version 8.02 of C::B.

--- End quote ---

You should rerun the C::B-installer and chose the lexers you need, because only a basic set of lexers is installed by default.


--- Quote from: mark4 on January 27, 2010, 08:08:33 am ---p.s. ive noticed i cannot drag and drop more than one file into this editor unless i do them all at the same time.  Not easy when you have multiple files in multiple sub dirs.  Is there a reason why you can only perform one d+d operation into C::B?  I tried to use the forum search but errr the output of this search is very fragmented and somewhat difficult to parse.  Ive seen a few postings related to drag and drop but nothign related to this specifically. \

--- End quote ---

Might be related to this: http://forums.codeblocks.org/index.php/topic,11933.msg81134/topicseen.html#msg81134.
I'm not sure if it was implemented in the 8.02 release. If not you should use more recent nightly-build.

filofel:

--- Quote from: jens on January 27, 2010, 12:16:58 am ---Virtual space will come with the next nightly and with the next release (of course).

--- End quote ---

Great news!  :D
Thank you!

filofel:

--- Quote from: jens on January 27, 2010, 12:16:58 am ---Virtual space will come with the next nightly and with the next release (of course).

--- End quote ---

Geee!
Just installed the stealth SVN 6130 nightly deb that popped up on your site, and sure, virtual spaces are there and working. That's going to make my C::B editing life more comfortable, and by a very significant margin.

I was a bit puzzled for a second or two to find the option under "Selections" (in Editor / Margins and caret), but checking the box and trying showed that it was definitly what I was hoping for.

Thanks to the Code::Blocks crew!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version