Hi Privalov!
How are you? Here comes a little question...
341 ...
342 jmp .paint_next_block
343 .get_color:
344 push ecx edx
345 test byte [edi],80h
346 jnz .highlight_color
347 mov eax,?
348 cmp [.error_line],eax
349 je .errorline_color
350 invoke SetBkColor,ebx,[.background_color]
351 mov al,[edi]
352 or al,al
353 jnz .syntax_color
354 .default_color:
355 invoke SetTextColor,ebx,[.text_color]
356 jmp .color_ok
357 .errorline_color:
358 invoke SetBkColor,ebx,[.error_background]
359 invoke SetTextColor,ebx,[.error_text]
360 jmp .color_ok
361 .syntax_color:
362 ...
How can I find out the line number of the line which is going to be painted in the paint loop (need it on line 347 to check whether the current line is the error line or not - [.error_line] contains the line number of the error line)??
Thanks!
Tommy