Hi,

these requirements have nothing to do with a help system
and is more oriented towards a "teaching Smalltalk" tool
HelpBrowser should stay generic as possible. One addition
I can imagine in the future is to use rich text (HTML)
instead of plain ASCII, of we find the time to look at
Scamper again.

However a few notes:
  - you can subclass HelpBrowser or implement another tool
    "TutorialBrowser" using HelpBrowser as template
  - highlighting: PluggableTextMorph is used, see
    PluggableTextMorph>>defaultViewerClass which can be
    overwritten by subclasses
    dont know if PluggableTextMorph supports SH out of the 
    box after the recent shout refactoring 
    (I think there is now also SmalltalkEditor) 
  - a help book is a tree, displaying page numbers makes
    more sense for linear tutorials like ProfStef, doesnt it?
  - see HelpBrowser>>initWindow to see how the UI is done
    again you can overwrite it in subclasses or after
    a super call adjust the UI    

Did you ever try ScriptManager (WorldMenu - Tools - ScriptManager)
It has Syntax highl. out of the box and you can save the results
in files. Should be easy to extend with buttons if you need too.

Bye
T. 
   






  > 
> > Hi all,
> >
> > I'm teaching smalltalk to my pupils using a ProfStef-tutorial (
> >
> http://www.lsh-marquartstein.de/schule/unterricht/faecher/informatik/unterrichtsmaterial/info10/smalltalk/MS-info10-ProfStef-MarkusSchlager.mcz/view
> > ).
> >
> > Currently we're using pharo 1.1. In pharo 1.2 ProfStefBrowser obviously
> got
> > replaced by another HelpBrowser. (What you get with Help->ProfStef
> > Tutorials).
> >
> 
> Yes I removed ProfStefBrowser because it was not maintained anymore and


> didn't have the courage to fix it.
> 
> HelpBrowser was here and interfacing it with ProfStef was almost free
> so....
> 
> 
> I'm missing two things:
> >
> > - syntax-highlighting: Is there any way, I can activate this easily?
> >
> 
> Torsten, is it possible to activate syntax-highlighting  for an HelpSystem
> book ?
 
> > - navigation-buttons and page-counter (at the moment, my tutorial has
> about
> > 60 pages): any chance to get these back?
> 
> 
> I think this may be useful for all HelpSystem books.... Torsten, what do
> you
> think ?
> 
> Indeed, to create a navigator just evaluate:
> 
> DockingBarMorph new
> addMorph: (UITheme builder newButtonFor: ProfStef action: #last label:
> '>>'
> help: 'Last lesson');
>  addMorph: (UITheme builder newButtonFor: ProfStef action: #next label:
> '>'
> help: 'Next lesson');
> addMorph:(UITheme builder newButtonFor: ProfStef action: #previous label:
> '<' help: 'Previous lesson');
>  addMorph: (UITheme builder newButtonFor: ProfStef action: #first label:
> '<<' help: 'First lesson');
> addMorph: (UITheme builder newLabel: 'ProfStef navigator');
>  adhereTo: #top;
> color: (Color white alpha: 0.4);
> borderWidth: 0;
>  openInWorld.
> 
> Should be fun to have it in the tutorial :)
> 
> Laurent.
> 
> 
> 
> > Markus
> >
> >

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

Reply via email to