writing lexer for our own language
-
hi, i have created a syntax colorising editor by usung "Scintillawnd" class and "Scilexer.dll" from the procrdure you have given . But i want to use it for some other language(ATLAS) ,for that which procedure i have to fallow? can i modify one of existing lexer (corresponding "*.c" file) to work according to my language synatax ? after modifying the one of existing lexer (corresponding "*.c" file) how i can include it to my project.? or i have to create a new lexer? if have to create which procedure i have to fallow? please give me the solution ....i am unable to understand the procedure given in the scintilla documents . thats why i am placing my doubt here...please help me..please...
-
hi, i have created a syntax colorising editor by usung "Scintillawnd" class and "Scilexer.dll" from the procrdure you have given . But i want to use it for some other language(ATLAS) ,for that which procedure i have to fallow? can i modify one of existing lexer (corresponding "*.c" file) to work according to my language synatax ? after modifying the one of existing lexer (corresponding "*.c" file) how i can include it to my project.? or i have to create a new lexer? if have to create which procedure i have to fallow? please give me the solution ....i am unable to understand the procedure given in the scintilla documents . thats why i am placing my doubt here...please help me..please...
mirraa wrote:
i have to create a new lexer? if have to create which procedure i have to fallow?
This is all well explained in the documentation that comes with the source code of Scintilla. Basically, it is better to duplicate one existing language lexer, at best the one that best matches your new language, rename-it and include it in the project.
http://www.readytogiveup.com/[^] - Do something special today. http://www.totalcoaching.ca/[^] - Give me some feedback about this site !