miaou wrote:
My problem is I want to underline the mismatched character or the errors after analysing and parsing my language.
I have searched in the mailing list, but I didnot find any answer.

Can anybody put a sample of code underlining (with a red wave, that will be great !!) a portion of text ?!?

(I apologize for my poor english, I am a poor french guy ;--)

Using SciTE's Lua extension, using indicator 1 for example:

  editor.IndicFore[1] = tonumber("0000FF", 16)
  editor.IndicStyle[1] = INDIC_SQUIGGLE
  local function underline_text(pos,len,ind)
    editor:StartStyling(pos,INDICS_MASK)
    editor:SetStyling(len,ind)
  end
  -- underlines first 100 chars, red squiggle
  underline_text(0,100,INDIC1_MASK)

Sorry for not providing Scintilla-centric code; the C++ calls ought to be somewhat similar... but Lua on SciTE is so easy to prototype, I often prefer to stick to it as long as I can.

HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to