|
From: Alain A. <ala...@wa...> - 2015-04-07 13:35:02
|
Le 07. 04. 15 13:30, Alexander S.Kresin a écrit :
>> 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.
I suppose that code sections are, in xml file, enclosed between
<![CDATA[ and ]]>
No ?
And I suppose too thata words are defined in tutor.xml between
<keywords> and </keywords>
No ?
For example, in tutor.xml, I have :
<keywords> GeneTools Harbour HwGUI Alain Aupeix geneanet Geneanet
Geneweb</keywords>
When displaying a module, some words are highlighted, some no, some
partially
> 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( ...
I haven't tried this way, because I was not sure you have understood
what I said (it was probably my fault ...)
>> 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.
Yes, it would be nice
Thanks
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2015-04-01 12:59) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2378)
------------------------------------------------------------------------
|