[fxruby-users] FXScintilla example?
Rovshan Baghirov
rovshanb at gmail.com
Wed Aug 27 01:01:16 EDT 2008
I'm sorry for dummy question. Next time I'll search a little more before
posting. I found how to do it.
On Tue, Aug 26, 2008 at 11:59 AM, Rovshan Baghirov <rovshanb at gmail.com>wrote:
> Hello,
>
> I have searched for FXScintilla examples (could not find examples on
> websites, only FreeRIDE and Mondrian) and also read the documentation at
> scintilla.org but I'm unable to make a simple example work.
> I'm trying to enable the sql language highlighting using this code:
>
> class Editor < FXScintilla
> def initialize(*args)
> super
> setMarginWidthN(0, 30)
> setTabWidth(4)
> setIndentationGuides(true)
> setLexer(FXScintilla::SCLEX_SQL)
>
> puts "Lexer: "+getLexer().to_s #----> this line outputs 7
> end
> end
>
> Could you please, give me some directions about the steps required to get
> it working?
>
> Thanks in advance,
> Rovshan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080827/9bac3461/attachment.html>
More information about the fxruby-users
mailing list