2
A
回答
7
要突出顯示一行,必須使用OnSpecialLineColors
事件。你可以創建一個函數來找到該行的字(檢查這個問題Is There An Efficient Whole Word Search Function in Delphi?
),然後畫線
檢查這個代碼
procedure TFrmMain.SynEditCodeSpecialLineColors(Sender: TObject;
Line: integer; var Special: boolean; var FG, BG: TColor);
begin
If LineContainsWord(Line) then //here check if the word is in the line
begin
FG := clYellow; //Text Color
BG := clBlue; //BackGround
Special := True; //Must be true
end;
end;
相關問題
- 1. 簡單的文字突出顯示jQuery
- 2. 簡單文本UIButton突出顯示
- 3. tinyMCE簡單語法突出顯示
- 4. 在文本區域中突出顯示簡單的Javascript?
- 5. UILabel突出顯示文字
- 6. 突出顯示簡單的數字行嗎?
- 7. 突出顯示WebPage中顯示的文檔中的單詞
- 8. 簡單的javascript鼠標撤消突出顯示文本
- 9. jquery簡單的搜索建議文本突出顯示
- 10. vb.net在word中突出顯示文字
- 11. Delphi:使用SynEdit加載大文件
- 12. 在wordpress中突出顯示非常簡單的代碼標籤?
- 13. 如何突出顯示我的文字
- 14. 單擊時突出顯示文本
- 15. 突出顯示的文本
- 16. 突出顯示菜單項
- 17. jquery突出顯示菜單
- 18. Asp.Net菜單突出顯示
- 19. 突出顯示菜單
- 20. 單擊突出顯示textview
- 21. 突出顯示oxyplot中的單個點?
- 22. 突出顯示DataGridView中的單詞?
- 23. 突出顯示CollectionView中的單元格
- 24. 在python中,生成突出顯示兩個簡單字符串差異的HTML
- 25. 如何動態地突出顯示html文檔中的文本
- 26. android如何突出顯示文字
- 27. 突出顯示圖像和文字
- 28. jquery突出顯示某段文字
- 29. jQuery插件 - 突出顯示文字
- 30. 着色/突出顯示崇高文字
謝謝!這個事件何時被調用? – maxfax
事件由Synedit組件調用,每次更改該行的數據。 – RRUZ