[fxruby-users] FXScintilla example?

Rovshan Baghirov rovshanb at gmail.com
Tue Aug 26 02:59:49 EDT 2008


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/20080826/f5d5e377/attachment.html>


More information about the fxruby-users mailing list