Displaying 1 result from an estimated 1 matches for "start_styling".
Did you mean:
start_spying
2007 Oct 24
1
Problems with creating my own syntax highlighter
...easiest way to do it seemed to parse the text contents in a
content-changed-event. But it doesn''t seem to work..
I tried to edit the scintilla sample and added this event(@sci is the
StyledTextCtrl):
@sci.evt_stc_change(@sci.get_id) do
@sci.clear_document_style
@sci.start_styling(1,31)
@sci.style_set_font_attr(10, 10, "Courier", true, true, true)
@sci.set_styling(2,10)
puts 1
end
This prints out "1" when you edit the text(twice actually, which i do not
understand), but doesn''t change the text layout. But if I put it...