News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Sintax Highlit - How to add new languages?

Started by PerryWerneck, November 22, 2005, 07:02:46 PM

Previous topic - Next topic

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?
---
Perry Werneck
Brasilia - DF - Brazil

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!!!
---
Perry Werneck
Brasilia - DF - Brazil

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.
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

...and don't forget to share the lexer when you 're done ;)
Be patient!
This bug will be fixed soon...

PerryWerneck

   That's the problem! Scintilla doesn't support rexx :(

   I sucessfully changed the c/c++ lexer and it's working fine if I use only lower case characters. It's still a work in progress but I can share it if there's some other person using rexx.

Quote from: MortenMacFly on November 22, 2005, 10:23:23 PM
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.

Quote from: mandrav on November 22, 2005, 11:07:28 PM
...and don't forget to share the lexer when you 're done ;)
---
Perry Werneck
Brasilia - DF - Brazil