Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Sintax Highlit - How to add new languages?

(1/2) > >>

PerryWerneck:
 
   Hi Folks,

   Well, I'm not sure if it's the right forum to post this message but since I'm planning to add "REXX" support in codeblocks and, to start it I need some directions. How comples is to add a sintax highliting in codeblocks? I saw some files in the "lexers" folder but I'm not sure if it's necessary only change them probably there other changes, or not?

rickg22:
Um... you need to edit the XML files. You need to read the scintilla lexers' sourcecode to see what codes are for what and stuff.

PerryWerneck:

   Hi,

   The first test is ok!! I was able to change the lexer adding the rexx commands and it's working. Still having some problems since rexx isn't case sensitive but I'll read the documentation.

   Thanks!!!

MortenMacFly:

--- Quote from: PerryWerneck on November 22, 2005, 09:13:55 pm ---Still having some problems since rexx isn't case sensitive but I'll read the documentation.

--- End quote ---
If you setup the index in the lexer file correctly (assuming that wxScintillx supports REXX natively) the editor should handle this correctly. See "wxscintilla.h" for what languages are supported and which index has to be used. FYI: There is a Fortran lexer which works similar because Fortran is also case in-sensitive.

Morten.

mandrav:
...and don't forget to share the lexer when you 're done ;)

Navigation

[0] Message Index

[#] Next page

Go to full version