On 30/05/2007 16:02, lan haibo wrote:
i like scite . but im working in 3D area . 3dsmax & maya . for these
script is max script and maya mel . but cant find the properties files
for them . so i want make it for my own . but i dont know how to make a
properties file . i had try to modify other properties files to fit for
my max script and mel . but faild :( .
I don't know what these languages look like, perhaps a small snippet of
each can help us.
In Scintilla (and SciTE, then), language highlighting is hard-coded in
C++, the properties files only define the keywords, the colors/styles
and some other language-specific details/options.
So for a new language, you have two options:
- Bite the bullet and write a new lexer; finding a similar language
might help as modifying an existing lexer is much easier than writing
one from scratch.
- Take a similar language and use its lexer with a new set of
properties, mostly specific keywords. It can work more or less well,
some comments can be wrongly colored, and so on, but it is much simpler.
Since lot of scripting languages look like Basic or C, it isn't so odd.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest