search for: set_lexer_language

Displaying 1 result from an estimated 1 matches for "set_lexer_language".

2007 Nov 29
0
WxRuby + Scintilla avec HTML + JavaScript
...' include Wx class MyFrame < Frame def initialize() super( nil, -1, ''test'', [100,100], [500,400] ) @sci = Wx::StyledTextCtrl.new( self ) line_num_margin = @sci.text_width( STC_STYLE_LINENUMBER, "_99999" ) @sci.set_margin_width( 0, line_num_margin ) @sci.set_lexer_language( ''hypertext'' ) @sci.style_clear_all() @sci.style_set_foreground( 0, Wx::Colour.new(0,0,0) ) @sci.style_set_foreground( 1, Wx::Colour.new(0,0,0xFF) ) @sci.style_set_foreground( 2, Wx::Colour.new(0,0xFF,0) ) @sci.style_set_foreground( 3, Wx::Colour.new(0,0xFF,0xFF) ) @sc...