|
From: Alexander S.K. <al...@be...> - 2015-04-07 12:30:51
|
> All I wanted for is works, except two points: > 1) Some words I wanted to highlight aren't highlighted. In tutor.prg only code sections are highlighted - see the function NodeOut(), which outputs the text. oText:HighLighter( oHighLighter ) is set for items with cargo[1] == .t., this :cargo value is set in BuildTree() function and it is set to .t. for tree nodes with a name "module". If you need the highlighting for all sections, drop the oText:HighLighter(), fron Nodeout() and insert the line oText:HighLighter( oHighLighter ) after oText := HCEdit():New( ... > 2) I would include images display in comment, but I don't know how to do > it in tutor, and in xml file. > The HCEdit() is plain text editor with syntax highlighting, nothing more, nothing less. It isn't intended to display images. I have wrote an extended text editor as a child class of HCEdit, which has xml structure and allows to edit text style, insert images and tables. It isn't finished yet, but the current functionality may be sufficient for your purposes. I can upload it and a sample editor, based on it to HwGUI repository. Regards, Alexander. |