Daniel Goupil wrote:
Brand new SciTE user and I want to do my custom syntax styling file
Welcome!
for melscript but how? Here my question
Another language I didn't knew. :-)
It seems to be related to the 3D program Maya, isn't it?
I downloaded a random script
<http://highend3d.com/maya/downloads/mel_scripts/utility_external/misc/3903.html>
out of curiosity.
1) Can I copy I modify an existing property file like cpp.properties and
call it mel.properties and change everithing from .cpp to .mel (doesnt
seem to work ;o) )
Somehow, see below.
2) Is it possible to modify the cpp.properties to know that variable
begins with a $? In mel u have something like this -> int $variable =
1; (ada.properties highlight the variable like I wanted but u dont have
the folding and a lot of missing feature)
PHP and Perl have variables starting with $.
Since the script I got uses backticks ` Perl lexer doesn't look bad on
it. You can experiment by activating languages in the menu.language
property, then selecting one or another.
3) Is there any step by step to create our how properties file? or do I
have to compile my own version ....
The real answer is: you have to code and compile your own version to
fully support all the features of this language.
Now, choosing a lexer and abusing the .properties file to come close of
a correct syntax highlighting can be done. It has been done, for
example, for the AutoHotkey (AHK) language, using the Asm lexer.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest