On 04/06/2010 10:35, ik wrote:
Hello List,
I've started last week to work on a Syntax highlighter for the Ruby
language for SynEdit.
You can find it here: http://github.com/ik5/SynEdit-syntaxes .
I have many things I do not understand in the highlighter issue.
For example how to create the ident (I've looked at the sources of
other languages, yet I do not understand how it's been done).
This is one of the things I require help at the moment to understand.
you mean indent? Not handled by the highlighter, see the SynBeautifier
(or codetools even)
How do I make the folding issues ?
And the list goes on (I'll ask it when I'll need to implement it, when
I do not understand).
This beginning of working for it, started because I think Lazarus is a
great IDE, and it should support additional programming languages (For
now non GUI development). Because I use Ruby a lot, and we do not have
any Syntax Highlighter for it, I decided to try and make Lazarus to
support Ruby at first.
If any of you think also that Lazarus should support additional
languages as part of the IDE (not only the coloring of the syntax that
is), I will be glad if people will help me in this manner.
There is subclass for folding highlighters, that gives you ar clue what
is needed.
See http://wiki.lazarus.freepascal.org/SynEdit_Highlighter
See also the docs dir in SynEdit (open the XML), it's very little, but
some is about highlighters.
The Simplest highlighters with fold are SynLFMSyn and SynDiffSyn (the
LFM is better, it's using the more generic approach, the diff
highlighter takes some shortcuts, that will not work for other languages)
Martin
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus